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