Skip to content

Commit

Permalink
python311Packages.netbox-bgp: init at 0.14.0 (#312861)
Browse files Browse the repository at this point in the history
  • Loading branch information
SuperSandro2000 authored Oct 26, 2024
2 parents 015d3ed + 7fe0d23 commit a48eed9
Show file tree
Hide file tree
Showing 2 changed files with 44 additions and 0 deletions.
42 changes: 42 additions & 0 deletions pkgs/development/python-modules/netbox-bgp/default.nix
Original file line number Diff line number Diff line change
@@ -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 ];
};
}
2 changes: 2 additions & 0 deletions pkgs/top-level/python-packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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 { };
Expand Down

0 comments on commit a48eed9

Please sign in to comment.