depot/third_party/nixpkgs/pkgs/development/python-modules/napalm/default.nix
Default email fa5436e0a7 Project import generated by Copybara.
GitOrigin-RevId: e8057b67ebf307f01bdcc8fba94d94f75039d1f6
2024-06-05 17:53:02 +02:00

86 lines
1.4 KiB
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
pythonOlder,
# build-system
setuptools,
cffi,
# dependencies
future,
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;
};
}