2018-03-02 14:34:20 +00:00
|
|
|
{ stdenv
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, six
|
|
|
|
, scp
|
|
|
|
, pyserial
|
|
|
|
, paramiko
|
|
|
|
, netaddr
|
|
|
|
, ncclient
|
|
|
|
, lxml
|
|
|
|
, jinja2
|
|
|
|
, pyyaml
|
|
|
|
, nose
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "junos-eznc";
|
2019-12-10 18:07:39 +00:00
|
|
|
version = "2.3.1";
|
2018-03-02 14:34:20 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2019-12-10 18:07:39 +00:00
|
|
|
sha256 = "0f8c4763fe2281979bc00350b93d510368992dbae0dae4fea0bafee5904a7e68";
|
2018-03-02 14:34:20 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|