587713944a
GitOrigin-RevId: 6143fc5eeb9c4f00163267708e26191d1e918932
85 lines
1.6 KiB
Nix
85 lines
1.6 KiB
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
jinja2,
|
|
lxml,
|
|
mock,
|
|
ncclient,
|
|
netaddr,
|
|
nose2,
|
|
ntc-templates,
|
|
paramiko,
|
|
pyparsing,
|
|
pyserial,
|
|
pythonOlder,
|
|
pyyaml,
|
|
scp,
|
|
setuptools,
|
|
pytestCheckHook,
|
|
six,
|
|
transitions,
|
|
yamlordereddictloader,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "junos-eznc";
|
|
version = "2.7.1";
|
|
pyproject = true;
|
|
|
|
disabled = pythonOlder "3.8";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "Juniper";
|
|
repo = "py-junos-eznc";
|
|
rev = "refs/tags/${version}";
|
|
hash = "sha256-aoi+in5A8qSdQNY3V4S4wBBfPchR1an7G6GQHDhgxpQ=";
|
|
};
|
|
|
|
build-system = [ setuptools ];
|
|
|
|
dependencies = [
|
|
jinja2
|
|
lxml
|
|
ncclient
|
|
netaddr
|
|
ntc-templates
|
|
paramiko
|
|
pyparsing
|
|
pyserial
|
|
pyyaml
|
|
scp
|
|
six
|
|
transitions
|
|
yamlordereddictloader
|
|
];
|
|
|
|
nativeCheckInputs = [
|
|
mock
|
|
nose2
|
|
pytestCheckHook
|
|
];
|
|
|
|
pytestFlagsArray = [ "tests/unit" ];
|
|
|
|
disabledTests = [
|
|
# jnpr.junos.exception.FactLoopError: A loop was detected while gathering the...
|
|
"TestPersonality"
|
|
"TestGetSoftwareInformation"
|
|
"TestIfdStyle"
|
|
# KeyError: 'mac'
|
|
"test_textfsm_table_mutli_key"
|
|
# AssertionError: None != 'juniper.net'
|
|
"test_domain_fact_from_config"
|
|
];
|
|
|
|
pythonImportsCheck = [ "jnpr.junos" ];
|
|
|
|
meta = with lib; {
|
|
description = "Junos 'EZ' automation for non-programmers";
|
|
homepage = "https://github.com/Juniper/py-junos-eznc";
|
|
changelog = "https://github.com/Juniper/py-junos-eznc/releases/tag/${version}";
|
|
license = licenses.asl20;
|
|
maintainers = with maintainers; [ xnaveira ];
|
|
};
|
|
}
|