Files
nixpkgs/pkgs/development/python-modules/junos-eznc/default.nix
T
Ihar Hrachyshka 567e8dfd8e treewide: clean up 'meta = with' pattern
This commit was created by a combination of scripts and tools:
- an ast-grep script to prefix things in meta with `lib.`,
- a modified nixf-diagnose / nixf combination to remove unused `with
lib;`, and
- regular nixfmt.

Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
2025-12-10 18:09:49 +01:00

88 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.5";
pyproject = true;
disabled = pythonOlder "3.8";
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 ];
};
}