nixpkgs/pkgs/development/python-modules/junos-eznc/default.nix
2019-10-27 16:26:45 +01:00

43 lines
815 B
Nix

{ stdenv
, buildPythonPackage
, fetchPypi
, six
, scp
, pyserial
, paramiko
, netaddr
, ncclient
, lxml
, jinja2
, pyyaml
, nose
}:
buildPythonPackage rec {
pname = "junos-eznc";
version = "2.3.0";
src = fetchPypi {
inherit pname version;
sha256 = "c0f853cdad12256ae8c33a80ff6c31a3ce867c481f805b085d554fbb5b5b084f";
};
checkInputs = [ nose ];
propagatedBuildInputs = [
scp six pyserial paramiko netaddr ncclient lxml jinja2 pyyaml
];
checkPhase = ''
nosetests -v --with-coverage --cover-package=jnpr.junos --cover-inclusive -a unit
'';
meta = with stdenv.lib; {
homepage = http://www.github.com/Juniper/py-junos-eznc;
description = "Junos 'EZ' automation for non-programmers";
license = licenses.asl20;
maintainers = with maintainers; [ xnaveira ];
};
}