depot/third_party/nixpkgs/pkgs/development/python-modules/napalm/default.nix
Default email 5ca88bfbb9 Project import generated by Copybara.
GitOrigin-RevId: 9f918d616c5321ad374ae6cb5ea89c9e04bf3e58
2024-07-31 10:19:44 +00:00

85 lines
1.3 KiB
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
pythonOlder,
# build-system
setuptools,
cffi,
# dependencies
jinja2,
junos-eznc,
lxml,
ncclient,
netaddr,
netmiko,
netutils,
paramiko,
pyeapi,
pyyaml,
requests,
scp,
textfsm,
ttp,
ttp-templates,
typing-extensions,
# tests
pytestCheckHook,
ddt,
mock,
}:
buildPythonPackage rec {
pname = "napalm";
version = "5.0.0";
format = "pyproject";
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "napalm-automation";
repo = "napalm";
rev = "refs/tags/${version}";
hash = "sha256-Abw3h69qTFwOOFeAfivqAIWLozErJ1yZZfx7CbMy1AI=";
};
nativeBuildInputs = [ setuptools ];
propagatedBuildInputs = [
cffi
jinja2
junos-eznc
lxml
ncclient
netaddr
netmiko
# breaks infinite recursion
(netutils.override { napalm = null; })
paramiko
pyeapi
pyyaml
requests
scp
setuptools
textfsm
ttp
ttp-templates
typing-extensions
];
nativeCheckInputs = [
pytestCheckHook
mock
ddt
];
meta = with lib; {
description = "Network Automation and Programmability Abstraction Layer with Multivendor support";
homepage = "https://github.com/napalm-automation/napalm";
license = licenses.asl20;
maintainers = with maintainers; [ ] ++ teams.c3d2.members;
};
}