python311Packages.netbox-bgp: init at 0.14.0 (#312861)

This commit is contained in:
Sandro 2024-10-26 14:04:41 +02:00 committed by GitHub
commit a48eed919a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 44 additions and 0 deletions

View File

@ -0,0 +1,42 @@
{
lib,
buildPythonPackage,
fetchFromGitHub,
setuptools,
netbox,
pytestCheckHook,
python,
}:
buildPythonPackage rec {
pname = "netbox-bgp";
version = "0.14.0";
pyproject = true;
src = fetchFromGitHub {
owner = "netbox-community";
repo = "netbox-bgp";
rev = "v${version}";
hash = "sha256-O/kvohyQRhAkDKN5smygyrldINkTQX6yY4eTHn7zSPU";
};
build-system = [ setuptools ];
nativeCheckInputs = [ netbox ];
preFixup = ''
export PYTHONPATH=${netbox}/opt/netbox/netbox:$PYTHONPATH
'';
dontUsePythonImportsCheck = python.pythonVersion != netbox.python.pythonVersion;
pythonImportsCheck = [ "netbox_bgp" ];
meta = {
description = "NetBox plugin for BGP related objects documentation";
homepage = "https://github.com/netbox-community/netbox-bgp";
changelog = "https://github.com/netbox-community/netbox-bgp/releases/tag/${src.rev}";
license = lib.licenses.asl20;
maintainers = with lib.maintainers; [ felbinger ];
};
}

View File

@ -8889,6 +8889,8 @@ self: super: with self; {
netapp-ontap = callPackage ../development/python-modules/netapp-ontap { };
netbox-bgp = callPackage ../development/python-modules/netbox-bgp { };
netbox-documents = callPackage ../development/python-modules/netbox-documents { };
netbox-reorder-rack = callPackage ../development/python-modules/netbox-reorder-rack { };