forked from mirrors/nixpkgs
69b393ace5
These URLs are reported as problematic by Repology. It could be a permanent redirection or the page does not exist anymore
40 lines
792 B
Nix
40 lines
792 B
Nix
{ stdenv
|
|
, buildPythonPackage
|
|
, fetchPypi
|
|
, paramiko
|
|
, selectors2
|
|
, lxml
|
|
, nose
|
|
, rednose
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "ncclient";
|
|
version = "0.6.6";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
sha256 = "2b367354d1cd25b79b8798a0b4c1949590d890057f2a252e6e970a9ab744e009";
|
|
};
|
|
|
|
checkInputs = [ nose rednose ];
|
|
|
|
propagatedBuildInputs = [
|
|
paramiko lxml selectors2
|
|
];
|
|
|
|
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 = "https://github.com/ncclient/ncclient";
|
|
description = "Python library for NETCONF clients";
|
|
license = licenses.asl20;
|
|
maintainers = with maintainers; [ xnaveira ];
|
|
};
|
|
}
|