2018-03-02 15:33:07 +01:00
|
|
|
{ stdenv
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, paramiko
|
2018-09-06 20:51:24 +02:00
|
|
|
, selectors2
|
2018-03-02 15:33:07 +01:00
|
|
|
, lxml
|
|
|
|
, libxml2
|
|
|
|
, libxslt
|
2018-03-02 15:34:20 +01:00
|
|
|
, nose
|
|
|
|
, rednose
|
2018-03-02 15:33:07 +01:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "ncclient";
|
2018-10-06 12:56:18 +02:00
|
|
|
version = "0.6.3";
|
2018-03-02 15:33:07 +01:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2018-10-06 12:56:18 +02:00
|
|
|
sha256 = "3ab58ee0d71069cb5b0e2f29a4e605d1d8417bd10af45b73ee3e817fe389fadc";
|
2018-03-02 15:33:07 +01:00
|
|
|
};
|
|
|
|
|
2018-03-02 15:34:20 +01:00
|
|
|
checkInputs = [ nose rednose ];
|
2018-03-02 15:33:07 +01:00
|
|
|
|
2018-03-02 15:34:20 +01:00
|
|
|
propagatedBuildInputs = [
|
2018-09-06 20:51:24 +02:00
|
|
|
paramiko lxml libxml2 libxslt selectors2
|
2018-03-02 15:33:07 +01:00
|
|
|
];
|
|
|
|
|
2018-03-02 15:34:20 +01:00
|
|
|
checkPhase = ''
|
|
|
|
nosetests test --rednose --verbosity=3 --with-coverage --cover-package ncclient
|
|
|
|
'';
|
|
|
|
|
|
|
|
#Unfortunately the test hangs at te end
|
|
|
|
doCheck = false;
|
|
|
|
|
2018-03-02 15:33:07 +01:00
|
|
|
meta = with stdenv.lib; {
|
|
|
|
homepage = http://ncclient.org/;
|
|
|
|
description = "Python library for NETCONF clients";
|
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = with maintainers; [ xnaveira ];
|
|
|
|
};
|
|
|
|
}
|