git.iko.soy/typeable/nixpkgs
on master help sign in
pythonPackages.selectors2: init at 2.0.1

Added package becuase now dependency of ncclient.

commit11c3fe2258ab086f582a3377c3d3b572e6ad41f8 authorChris Ostrouchov <chris.ostrouchov@gmail.com> dateThu 6 Sep 2018, 14:50 (8 years ago) parentd43e320
2 files changed+31
pkgs/development/python-modules/selectors2/default.nix+29 pkgs/top-level/python-packages.nix+2
pkgs/development/python-modules/selectors2/default.nixnew file+29
@@ -0,0 +1,29 @@
1+{ stdenv, buildPythonPackage, fetchPypi
2+, nose, psutil, mock }:
3+
4+buildPythonPackage rec {
5+ version = "2.0.1";
6+ pname = "selectors2";
7+
8+ src = fetchPypi {
9+ inherit pname version;
10+ sha256 = "81b77c4c6f607248b1d6bbdb5935403fef294b224b842a830bbfabb400c81884";
11+ };
12+
13+ checkInputs = [ nose psutil mock ];
14+
15+ checkPhase = ''
16+ # https://github.com/NixOS/nixpkgs/pull/46186#issuecomment-419450064
17+ # Trick to disable certain tests that depend on timing which
18+ # will always fail on hydra
19+ export TRAVIS=""
20+ nosetests tests/test_selectors2.py
21+ '';
22+
23+ meta = with stdenv.lib; {
24+ homepage = https://www.github.com/SethMichaelLarson/selectors2;
25+ description = "Back-ported, durable, and portable selectors";
26+ license = licenses.mit;
27+ maintainers = [ maintainers.costrouc ];
28+ };
29+}
pkgs/top-level/python-packages.nix+2
@@ -536,6 +536,8 @@ in {
536536
537537 seekpath = callPackage ../development/python-modules/seekpath { };
538538
539+ selectors2 = callPackage ../development/python-modules/selectors2 { };
540+
539541 serversyncstorage = callPackage ../development/python-modules/serversyncstorage {};
540542
541543 simpleeval = callPackage ../development/python-modules/simpleeval { };