python312Packages.netbox-napalm-plugin: init at 0.3.1 (#374534)
This commit is contained in:
@@ -0,0 +1,49 @@
|
||||
{
|
||||
lib,
|
||||
buildPythonPackage,
|
||||
fetchFromGitHub,
|
||||
setuptools,
|
||||
netbox,
|
||||
pythonAtLeast,
|
||||
napalm,
|
||||
}:
|
||||
buildPythonPackage rec {
|
||||
pname = "netbox-napalm-plugin";
|
||||
version = "0.3.1";
|
||||
pyproject = true;
|
||||
|
||||
disabled = pythonAtLeast "3.13";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "netbox-community";
|
||||
repo = "netbox-napalm-plugin";
|
||||
rev = "v${version}";
|
||||
hash = "sha256-nog6DymnnD0ABzG21jy00yNWhSTHfd7vJ4vo1DjsfKs=";
|
||||
};
|
||||
|
||||
build-system = [ setuptools ];
|
||||
|
||||
dependencies = [ napalm ];
|
||||
|
||||
nativeCheckInputs = [ netbox ];
|
||||
|
||||
postPatch = ''
|
||||
substituteInPlace pyproject.toml \
|
||||
--replace-fail 'napalm<5.0' 'napalm'
|
||||
'';
|
||||
|
||||
preFixup = ''
|
||||
export PYTHONPATH=${netbox}/opt/netbox/netbox:$PYTHONPATH
|
||||
'';
|
||||
|
||||
pythonImportsCheck = [ "netbox_napalm_plugin" ];
|
||||
|
||||
meta = {
|
||||
description = "Netbox plugin for Napalm integration";
|
||||
homepage = "https://github.com/netbox-community/netbox-napalm-plugin";
|
||||
changelog = "https://github.com/netbox-community/netbox-napalm-plugin/releases/tag/${src.rev}";
|
||||
license = lib.licenses.asl20;
|
||||
platforms = lib.platforms.linux;
|
||||
maintainers = with lib.maintainers; [ felbinger ];
|
||||
};
|
||||
}
|
||||
@@ -9170,6 +9170,8 @@ self: super: with self; {
|
||||
|
||||
netbox-interface-synchronization = callPackage ../development/python-modules/netbox-interface-synchronization { };
|
||||
|
||||
netbox-napalm-plugin = callPackage ../development/python-modules/netbox-napalm-plugin { };
|
||||
|
||||
netbox-plugin-prometheus-sd = callPackage ../development/python-modules/netbox-plugin-prometheus-sd { };
|
||||
|
||||
netbox-qrcode = callPackage ../development/python-modules/netbox-qrcode { };
|
||||
|
||||
Reference in New Issue
Block a user