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";
|
2020-06-06 07:47:15 +01:00
|
|
|
version = "2.4.1";
|
2018-03-02 14:34:20 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2020-06-06 07:47:15 +01:00
|
|
|
sha256 = "8f3ecf06ab4d630f27e7ed7a7b605122ee5c5e5386b1f5186f6cb52810750b18";
|
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; {
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "http://www.github.com/Juniper/py-junos-eznc";
|
2018-03-02 14:34:20 +00:00
|
|
|
description = "Junos 'EZ' automation for non-programmers";
|
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = with maintainers; [ xnaveira ];
|
|
|
|
};
|
|
|
|
}
|