Files
nixpkgs/pkgs/development/python-modules/napalm/default.nix
T
Michael Daniels 075e8c2c4f treewide: change 'format = "pyproject";' to 'pyproject = true;'
This is almost all find-and-replace.

I manually edited:
* pkgs/development/python-modules/notifications-android-tv/default.nix,
* pkgs/servers/home-assistant/default.nix,
* pkgs/development/tools/continuous-integration/buildbot/master.nix

A few files have not been changed in this PR because they would cause rebuilds.

This PR should have 0 rebuilds.
2026-01-12 17:50:35 -05:00

93 lines
1.5 KiB
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
fetchpatch,
# 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";
pyproject = true;
src = fetchFromGitHub {
owner = "napalm-automation";
repo = "napalm";
tag = version;
hash = "sha256-Abw3h69qTFwOOFeAfivqAIWLozErJ1yZZfx7CbMy1AI=";
};
patches = [
(fetchpatch {
url = "https://github.com/napalm-automation/napalm/commit/7e509869f7cb56892380629d1cb5f99e3e2c6190.patch";
hash = "sha256-vJDACa5SmSJ/rcmKEow4Prqju/jYcCrzGpTdEYsAPq0=";
includes = [
"napalm/ios/ios.py"
];
})
];
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 = {
description = "Network Automation and Programmability Abstraction Layer with Multivendor support";
homepage = "https://github.com/napalm-automation/napalm";
license = lib.licenses.asl20;
};
}