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