Something went wrong. Try again.
What happens if I push all of nixpkgs
Something went wrong. Try again.
1.6 kB · 87 lines
Nix
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788{ 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.4"; pyproject = true;
disabled = pythonOlder "3.8";
src = fetchFromGitHub { owner = "Juniper"; repo = "py-junos-eznc"; tag = version; hash = "sha256-iuCVfzS8k/TZ58v/OPJfSpIMYwwKRj1zyd4FF/KLjjI="; };
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 = 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/${src.tag}"; license = licenses.asl20; maintainers = with maintainers; [ xnaveira ]; };}