1a04744f74
There is no need to disable Python packages for Python versions that are
no longer in Nixpkgs.
This change was generated using the following script:
pattern='^\s*disabled\s*=\s*pythonOlder\s*"3\.\([0-9]\|10\)"\s*;\s*$'
for f in $(find -name '*.nix'); do
grep -q "$pattern" "$f" || continue
sed -i "/$pattern/d" "$f"
if [ $(grep -c pythonOlder "$f") == 1 ]; then
sed -i '/^\s*pythonOlder,\s*$/d' "$f"
fi
nixfmt "$f"
done
85 lines
1.5 KiB
Nix
85 lines
1.5 KiB
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
jinja2,
|
|
lxml,
|
|
mock,
|
|
ncclient,
|
|
netaddr,
|
|
nose2,
|
|
ntc-templates,
|
|
paramiko,
|
|
pyparsing,
|
|
pyserial,
|
|
pyyaml,
|
|
scp,
|
|
setuptools,
|
|
pytestCheckHook,
|
|
six,
|
|
transitions,
|
|
yamlordereddictloader,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "junos-eznc";
|
|
version = "2.7.5";
|
|
pyproject = true;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "Juniper";
|
|
repo = "py-junos-eznc";
|
|
tag = version;
|
|
hash = "sha256-1OOXhhY3fBG00PptUSfIPI906YLgludr9PRMoWBbPnU=";
|
|
};
|
|
|
|
build-system = [ setuptools ];
|
|
|
|
pythonRelaxDeps = [ "ncclient" ];
|
|
|
|
dependencies = [
|
|
jinja2
|
|
lxml
|
|
ncclient
|
|
netaddr
|
|
ntc-templates
|
|
paramiko
|
|
pyparsing
|
|
pyserial
|
|
pyyaml
|
|
scp
|
|
six
|
|
transitions
|
|
yamlordereddictloader
|
|
];
|
|
|
|
nativeCheckInputs = [
|
|
mock
|
|
nose2
|
|
pytestCheckHook
|
|
];
|
|
|
|
enabledTestPaths = [ "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 = {
|
|
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/${src.tag}";
|
|
license = lib.licenses.asl20;
|
|
maintainers = with lib.maintainers; [ xnaveira ];
|
|
};
|
|
}
|