2018-03-02 14:33:07 +00:00
|
|
|
{ stdenv
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, paramiko
|
2018-09-06 19:51:24 +01:00
|
|
|
, selectors2
|
2018-03-02 14:33:07 +00:00
|
|
|
, lxml
|
2018-03-02 14:34:20 +00:00
|
|
|
, nose
|
|
|
|
, rednose
|
2018-03-02 14:33:07 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "ncclient";
|
2019-12-29 09:28:08 +00:00
|
|
|
version = "0.6.7";
|
2018-03-02 14:33:07 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2019-12-29 09:28:08 +00:00
|
|
|
sha256 = "efdf3c868cd9f104d4e9fe4c233df78bfbbed4b3d78ba19dc27cec3cf6a63680";
|
2018-03-02 14:33:07 +00:00
|
|
|
};
|
|
|
|
|
2018-03-02 14:34:20 +00:00
|
|
|
checkInputs = [ nose rednose ];
|
2018-03-02 14:33:07 +00:00
|
|
|
|
2018-03-02 14:34:20 +00:00
|
|
|
propagatedBuildInputs = [
|
2019-09-21 17:58:23 +01:00
|
|
|
paramiko lxml selectors2
|
2018-03-02 14:33:07 +00:00
|
|
|
];
|
|
|
|
|
2018-03-02 14:34:20 +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; {
|
2019-12-08 16:50:31 +00:00
|
|
|
homepage = "https://github.com/ncclient/ncclient";
|
2018-03-02 14:33:07 +00:00
|
|
|
description = "Python library for NETCONF clients";
|
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = with maintainers; [ xnaveira ];
|
|
|
|
};
|
|
|
|
}
|