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