git.iko.soy/typeable/nixpkgs
on master help sign in
Merge pull request #46186 from costrouc/costrouc/python-ncclient

pythonPackages.ncclient: refactor + init pythonPackages.selectors2

commit6f3ff5acc77bf2848c3151a3674e0f5912a304c8 authorxeji <36407913+xeji@users.noreply.github.com> dateFri 7 Sep 2018, 17:33 (8 years ago) parente326c01a726956
3 files changed+33−1
pkgs/development/python-modules/ncclient/default.nix+2−1 pkgs/development/python-modules/selectors2/default.nix+29 pkgs/top-level/python-packages.nix+2
pkgs/development/python-modules/ncclient/default.nix+2−1
@@ -2,6 +2,7 @@
22, buildPythonPackage
33, fetchPypi
44, paramiko
5+, selectors2
56, lxml
67, libxml2
78, libxslt
@@ -21,7 +22,7 @@ buildPythonPackage rec {
2122 checkInputs = [ nose rednose ];
2223
2324 propagatedBuildInputs = [
24− paramiko lxml libxml2 libxslt
25+ paramiko lxml libxml2 libxslt selectors2
2526 ];
2627
2728 checkPhase = ''
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
@@ -538,6 +538,8 @@ in {
538538
539539 seekpath = callPackage ../development/python-modules/seekpath { };
540540
541+ selectors2 = callPackage ../development/python-modules/selectors2 { };
542+
541543 serversyncstorage = callPackage ../development/python-modules/serversyncstorage {};
542544
543545 simpleeval = callPackage ../development/python-modules/simpleeval { };