2021-01-25 08:26:54 +00:00
|
|
|
{ lib
|
2018-03-02 14:34:20 +00:00
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, six
|
|
|
|
, scp
|
|
|
|
, pyserial
|
|
|
|
, paramiko
|
|
|
|
, netaddr
|
|
|
|
, ncclient
|
2020-09-19 02:45:28 +01:00
|
|
|
, ntc-templates
|
2018-03-02 14:34:20 +00:00
|
|
|
, lxml
|
|
|
|
, jinja2
|
|
|
|
, pyyaml
|
2020-09-19 02:45:28 +01:00
|
|
|
, transitions
|
|
|
|
, yamlordereddictloader
|
2018-03-02 14:34:20 +00:00
|
|
|
, nose
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "junos-eznc";
|
2020-11-04 14:04:23 +00:00
|
|
|
version = "2.5.4";
|
2018-03-02 14:34:20 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2020-11-04 14:04:23 +00:00
|
|
|
sha256 = "bf036d0af9ee5c5e4f517cb5fc902fe891fa120e18f459805862c53d4a97193a";
|
2018-03-02 14:34:20 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
checkInputs = [ nose ];
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
2020-09-19 02:45:28 +01:00
|
|
|
scp six pyserial paramiko netaddr ncclient ntc-templates lxml jinja2 pyyaml transitions yamlordereddictloader
|
2018-03-02 14:34:20 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
checkPhase = ''
|
|
|
|
nosetests -v --with-coverage --cover-package=jnpr.junos --cover-inclusive -a unit
|
|
|
|
'';
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with 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 ];
|
|
|
|
};
|
|
|
|
}
|