2021-02-05 17:12:51 +00:00
|
|
|
{ lib
|
2020-04-24 23:36:52 +00:00
|
|
|
, buildPythonPackage
|
2022-04-27 09:35:20 +00:00
|
|
|
, fetchFromGitHub
|
|
|
|
, jinja2
|
|
|
|
, lxml
|
2023-03-04 12:14:45 +00:00
|
|
|
, mock
|
2020-04-24 23:36:52 +00:00
|
|
|
, ncclient
|
2022-04-27 09:35:20 +00:00
|
|
|
, netaddr
|
2024-01-25 14:12:00 +00:00
|
|
|
, nose2
|
2020-09-25 04:45:31 +00:00
|
|
|
, ntc-templates
|
2022-04-27 09:35:20 +00:00
|
|
|
, paramiko
|
|
|
|
, pyparsing
|
|
|
|
, pyserial
|
2023-03-04 12:14:45 +00:00
|
|
|
, pythonOlder
|
2020-04-24 23:36:52 +00:00
|
|
|
, pyyaml
|
2022-04-27 09:35:20 +00:00
|
|
|
, scp
|
2024-01-25 14:12:00 +00:00
|
|
|
, setuptools
|
|
|
|
, pytestCheckHook
|
2022-04-27 09:35:20 +00:00
|
|
|
, six
|
2020-09-25 04:45:31 +00:00
|
|
|
, transitions
|
|
|
|
, yamlordereddictloader
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "junos-eznc";
|
2024-01-25 14:12:00 +00:00
|
|
|
version = "2.7.0";
|
|
|
|
pyproject = true;
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2024-01-25 14:12:00 +00:00
|
|
|
disabled = pythonOlder "3.8";
|
2023-03-04 12:14:45 +00:00
|
|
|
|
2022-04-27 09:35:20 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "Juniper";
|
|
|
|
repo = "py-junos-eznc";
|
2023-01-20 10:41:00 +00:00
|
|
|
rev = "refs/tags/${version}";
|
2024-01-25 14:12:00 +00:00
|
|
|
hash = "sha256-06OV6UrF2i4SxL5dCvVxsEX2e8ef8UBFx/oMbvCZDaM=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2024-01-25 14:12:00 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
setuptools
|
|
|
|
];
|
2023-03-04 12:14:45 +00:00
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
propagatedBuildInputs = [
|
2022-04-27 09:35:20 +00:00
|
|
|
jinja2
|
|
|
|
lxml
|
|
|
|
ncclient
|
|
|
|
netaddr
|
|
|
|
ntc-templates
|
|
|
|
paramiko
|
|
|
|
pyparsing
|
|
|
|
pyserial
|
|
|
|
pyyaml
|
|
|
|
scp
|
|
|
|
six
|
|
|
|
transitions
|
|
|
|
yamlordereddictloader
|
|
|
|
];
|
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [
|
2022-04-27 09:35:20 +00:00
|
|
|
mock
|
2024-01-25 14:12:00 +00:00
|
|
|
nose2
|
|
|
|
pytestCheckHook
|
|
|
|
];
|
|
|
|
|
|
|
|
pytestFlagsArray = [
|
|
|
|
"tests/unit"
|
2020-04-24 23:36:52 +00:00
|
|
|
];
|
|
|
|
|
2024-01-25 14:12:00 +00:00
|
|
|
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"
|
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2023-03-04 12:14:45 +00:00
|
|
|
pythonImportsCheck = [
|
|
|
|
"jnpr.junos"
|
|
|
|
];
|
2021-08-27 14:25:00 +00:00
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "Junos 'EZ' automation for non-programmers";
|
2023-03-04 12:14:45 +00:00
|
|
|
homepage = "https://github.com/Juniper/py-junos-eznc";
|
2024-01-25 14:12:00 +00:00
|
|
|
changelog = "https://github.com/Juniper/py-junos-eznc/releases/tag/${version}";
|
2020-04-24 23:36:52 +00:00
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = with maintainers; [ xnaveira ];
|
|
|
|
};
|
|
|
|
}
|