1{ stdenv
2, buildPythonPackage
3, fetchPypi
4, paramiko
5, selectors2
6, lxml
7, libxml2
8, libxslt
9, nose
10, rednose
11}:
12
13buildPythonPackage rec {
14 pname = "ncclient";
15 version = "0.6.3";
16
17 src = fetchPypi {
18 inherit pname version;
19 sha256 = "3ab58ee0d71069cb5b0e2f29a4e605d1d8417bd10af45b73ee3e817fe389fadc";
20 };
21
22 checkInputs = [ nose rednose ];
23
24 propagatedBuildInputs = [
25 paramiko lxml libxml2 libxslt selectors2
26 ];
27
28 checkPhase = ''
29 nosetests test --rednose --verbosity=3 --with-coverage --cover-package ncclient
30 '';
31
32 #Unfortunately the test hangs at te end
33 doCheck = false;
34
35 meta = with stdenv.lib; {
36 homepage = http://ncclient.org/;
37 description = "Python library for NETCONF clients";
38 license = licenses.asl20;
39 maintainers = with maintainers; [ xnaveira ];
40 };
41}