1{ stdenv
2, buildPythonPackage
3, fetchPypi
4, paramiko
5, lxml
6, libxml2
7, libxslt
8, pytest
9, nose
10, rednose
11}:
12
13buildPythonPackage rec {
14 pname = "ncclient";
15 version = "0.5.3";
16
17 src = fetchPypi {
18 inherit pname version;
19 sha256 = "fe6b9c16ed5f1b21f5591da74bfdd91a9bdf69eb4e918f1c06b3c8db307bd32b";
20 };
21
22 checkInputs = [ nose rednose ];
23
24 propagatedBuildInputs = [
25 paramiko lxml libxml2 libxslt
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}