mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-25 00:12:56 +00:00
python311Packages.netbox-bgp: init at 0.14.0 (#312861)
This commit is contained in:
commit
a48eed919a
42
pkgs/development/python-modules/netbox-bgp/default.nix
Normal file
42
pkgs/development/python-modules/netbox-bgp/default.nix
Normal 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 ];
|
||||
};
|
||||
}
|
@ -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 { };
|
||||
|
Loading…
Reference in New Issue
Block a user