2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchFromGitHub,
|
|
|
|
pythonOlder,
|
2023-11-16 04:20:00 +00:00
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
# build-system
|
|
|
|
setuptools,
|
|
|
|
cffi,
|
2023-11-16 04:20:00 +00:00
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
# dependencies
|
|
|
|
jinja2,
|
|
|
|
junos-eznc,
|
|
|
|
lxml,
|
|
|
|
ncclient,
|
|
|
|
netaddr,
|
|
|
|
netmiko,
|
|
|
|
netutils,
|
|
|
|
paramiko,
|
|
|
|
pyeapi,
|
|
|
|
pyyaml,
|
|
|
|
requests,
|
|
|
|
scp,
|
|
|
|
textfsm,
|
|
|
|
ttp,
|
|
|
|
ttp-templates,
|
|
|
|
typing-extensions,
|
2023-11-16 04:20:00 +00:00
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
# tests
|
|
|
|
pytestCheckHook,
|
|
|
|
ddt,
|
|
|
|
mock,
|
|
|
|
}:
|
2022-02-21 08:47:16 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "napalm";
|
2024-04-21 15:54:59 +00:00
|
|
|
version = "5.0.0";
|
2023-11-16 04:20:00 +00:00
|
|
|
format = "pyproject";
|
2022-05-18 14:49:53 +00:00
|
|
|
|
2022-06-16 17:23:12 +00:00
|
|
|
disabled = pythonOlder "3.7";
|
2022-02-21 08:47:16 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "napalm-automation";
|
|
|
|
repo = "napalm";
|
2023-11-16 04:20:00 +00:00
|
|
|
rev = "refs/tags/${version}";
|
2024-04-21 15:54:59 +00:00
|
|
|
hash = "sha256-Abw3h69qTFwOOFeAfivqAIWLozErJ1yZZfx7CbMy1AI=";
|
2022-02-21 08:47:16 +00:00
|
|
|
};
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
nativeBuildInputs = [ setuptools ];
|
2022-06-16 17:23:12 +00:00
|
|
|
|
2022-02-21 08:47:16 +00:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
cffi
|
|
|
|
jinja2
|
2023-11-16 04:20:00 +00:00
|
|
|
junos-eznc
|
|
|
|
lxml
|
|
|
|
ncclient
|
2022-02-21 08:47:16 +00:00
|
|
|
netaddr
|
|
|
|
netmiko
|
2023-11-16 04:20:00 +00:00
|
|
|
# breaks infinite recursion
|
|
|
|
(netutils.override { napalm = null; })
|
|
|
|
paramiko
|
|
|
|
pyeapi
|
|
|
|
pyyaml
|
|
|
|
requests
|
2022-02-21 08:47:16 +00:00
|
|
|
scp
|
2022-06-26 10:26:21 +00:00
|
|
|
setuptools
|
2023-11-16 04:20:00 +00:00
|
|
|
textfsm
|
|
|
|
ttp
|
|
|
|
ttp-templates
|
|
|
|
typing-extensions
|
2022-02-21 08:47:16 +00:00
|
|
|
];
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
nativeCheckInputs = [
|
|
|
|
pytestCheckHook
|
|
|
|
mock
|
|
|
|
ddt
|
|
|
|
];
|
2022-02-21 08:47:16 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
2024-06-05 15:53:02 +00:00
|
|
|
description = "Network Automation and Programmability Abstraction Layer with Multivendor support";
|
2022-02-21 08:47:16 +00:00
|
|
|
homepage = "https://github.com/napalm-automation/napalm";
|
|
|
|
license = licenses.asl20;
|
2022-06-26 10:26:21 +00:00
|
|
|
maintainers = with maintainers; [ ] ++ teams.c3d2.members;
|
2022-02-21 08:47:16 +00:00
|
|
|
};
|
|
|
|
}
|