1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-25 03:17:13 +00:00
nixpkgs/pkgs/development/python-modules/ncclient/default.nix

42 lines
810 B
Nix
Raw Normal View History

2018-03-02 14:33:07 +00:00
{ stdenv
, buildPythonPackage
, fetchPypi
, paramiko
, selectors2
2018-03-02 14:33:07 +00:00
, lxml
, libxml2
, libxslt
, nose
, rednose
2018-03-02 14:33:07 +00:00
}:
buildPythonPackage rec {
pname = "ncclient";
2018-08-25 06:47:18 +01:00
version = "0.6.2";
2018-03-02 14:33:07 +00:00
src = fetchPypi {
inherit pname version;
2018-08-25 06:47:18 +01:00
sha256 = "6616828f9c5d318906dae22378a78342bbfa5983f1775c1af8bfecc779434c38";
2018-03-02 14:33:07 +00:00
};
checkInputs = [ nose rednose ];
2018-03-02 14:33:07 +00:00
propagatedBuildInputs = [
paramiko lxml libxml2 libxslt selectors2
2018-03-02 14:33:07 +00:00
];
checkPhase = ''
nosetests test --rednose --verbosity=3 --with-coverage --cover-package ncclient
'';
#Unfortunately the test hangs at te end
doCheck = false;
2018-03-02 14:33:07 +00:00
meta = with stdenv.lib; {
homepage = http://ncclient.org/;
description = "Python library for NETCONF clients";
license = licenses.asl20;
maintainers = with maintainers; [ xnaveira ];
};
}