2018-03-02 15:33:07 +01:00
|
|
|
{ stdenv
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, paramiko
|
|
|
|
, lxml
|
|
|
|
, libxml2
|
|
|
|
, libxslt
|
2018-03-02 15:34:20 +01:00
|
|
|
, pytest
|
|
|
|
, nose
|
|
|
|
, rednose
|
2018-03-02 15:33:07 +01:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "ncclient";
|
|
|
|
version = "0.5.3";
|
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
|
|
|
sha256 = "fe6b9c16ed5f1b21f5591da74bfdd91a9bdf69eb4e918f1c06b3c8db307bd32b";
|
|
|
|
};
|
|
|
|
|
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 = [
|
|
|
|
paramiko lxml libxml2 libxslt
|
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 ];
|
|
|
|
};
|
|
|
|
}
|