nixpkgs/pkgs/development/python-modules/ncclient/default.nix

41 lines
786 B
Nix
Raw Normal View History

2018-03-02 14:33:07 +00:00
{ stdenv
, buildPythonPackage
, fetchPypi
, paramiko
, lxml
, libxml2
, libxslt
, nose
, rednose
2018-03-02 14:33:07 +00:00
}:
buildPythonPackage rec {
pname = "ncclient";
2018-07-22 10:14:03 +00:00
version = "0.6.0";
2018-03-02 14:33:07 +00:00
src = fetchPypi {
inherit pname version;
2018-07-22 10:14:03 +00:00
sha256 = "da7f7dfb8a60711610139e894b41ebcab3cd7103b78439ad5e9e91c2d3cfa423";
2018-03-02 14:33:07 +00:00
};
checkInputs = [ nose rednose ];
2018-03-02 14:33:07 +00:00
propagatedBuildInputs = [
paramiko lxml libxml2 libxslt
2018-03-02 14:33:07 +00:00
];
checkPhase = ''
nosetests test --rednose --verbosity=3 --with-coverage --cover-package ncclient
'';
#Unfortunately the test hangs at te end
doCheck = false;
2018-03-02 14:33:07 +00:00
meta = with stdenv.lib; {
homepage = http://ncclient.org/;
description = "Python library for NETCONF clients";
license = licenses.asl20;
maintainers = with maintainers; [ xnaveira ];
};
}