summary refs log tree commit diff
path: root/pkgs/development/python-modules/ncclient
diff options
context:
space:
mode:
authorXavier Naveira <xavier.naveira@ooyala.com>2018-03-02 15:34:20 +0100
committerXavier Naveira <xavier.naveira@ooyala.com>2018-03-03 17:52:48 +0100
commit1689c3c53f698c242e28c6e308e048a192ba719e (patch)
tree5b3908058ce1a3717b8f7ff17271fb6f5424dc10 /pkgs/development/python-modules/ncclient
parent22c5082aed3d2ab1909f1df6e38cec349be1991c (diff)
downloadnixpkgs-1689c3c53f698c242e28c6e308e048a192ba719e.tar
nixpkgs-1689c3c53f698c242e28c6e308e048a192ba719e.tar.gz
nixpkgs-1689c3c53f698c242e28c6e308e048a192ba719e.tar.bz2
nixpkgs-1689c3c53f698c242e28c6e308e048a192ba719e.tar.lz
nixpkgs-1689c3c53f698c242e28c6e308e048a192ba719e.tar.xz
nixpkgs-1689c3c53f698c242e28c6e308e048a192ba719e.tar.zst
nixpkgs-1689c3c53f698c242e28c6e308e048a192ba719e.zip
pythonPackages.junos-eznc: init at 2.1.7
pythonPackages.junos-eznc: init at 2.1.7

pythonPackages.junos-eznc: init at 2.1.7
Diffstat (limited to 'pkgs/development/python-modules/ncclient')
-rw-r--r--pkgs/development/python-modules/ncclient/default.nix17
1 files changed, 13 insertions, 4 deletions
diff --git a/pkgs/development/python-modules/ncclient/default.nix b/pkgs/development/python-modules/ncclient/default.nix
index 2c6fcedc069..4cc5769d8d8 100644
--- a/pkgs/development/python-modules/ncclient/default.nix
+++ b/pkgs/development/python-modules/ncclient/default.nix
@@ -1,12 +1,13 @@
 { stdenv
 , buildPythonPackage
 , fetchPypi
-, pythonPackages
-, setuptools
 , paramiko
 , lxml
 , libxml2
 , libxslt
+, pytest
+, nose
+, rednose
 }:
 
 buildPythonPackage rec {
@@ -18,11 +19,19 @@ buildPythonPackage rec {
     sha256 = "fe6b9c16ed5f1b21f5591da74bfdd91a9bdf69eb4e918f1c06b3c8db307bd32b";
   };
 
+  checkInputs = [ nose rednose ];
 
-  buildInputs = [
-    setuptools paramiko lxml libxml2 libxslt
+  propagatedBuildInputs = [
+    paramiko lxml libxml2 libxslt
   ];
 
+  checkPhase = ''
+    nosetests test --rednose --verbosity=3 --with-coverage --cover-package ncclient
+  '';
+
+  #Unfortunately the test hangs at te end
+  doCheck = false;
+
   meta = with stdenv.lib; {
     homepage = http://ncclient.org/;
     description = "Python library for NETCONF clients";