diff --git a/pkgs/development/python-modules/netbox-bgp/default.nix b/pkgs/development/python-modules/netbox-bgp/default.nix new file mode 100644 index 00000000000000..b51bf50d3eaac7 --- /dev/null +++ b/pkgs/development/python-modules/netbox-bgp/default.nix @@ -0,0 +1,37 @@ +{ + lib, + buildPythonPackage, + fetchFromGitHub, + setuptools, + netbox, + pytestCheckHook, +}: + +buildPythonPackage rec { + pname = "netbox-bgp"; + version = "0.11.1"; + pyproject = true; + + src = fetchFromGitHub { + owner = "netbox-community"; + repo = "netbox-bgp"; + rev = "v${version}"; + hash = "sha256-+F7Y+bmxVz/P1C8zG9Uev646zBKvlYOx/pENN1+4Dig="; + }; + + nativeBuildInputs = [ pytestCheckHook ]; + + build-system = [ setuptools ]; + + checkInputs = [ netbox ]; + + 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 ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index f9459619033fa8..3697e373f0c7d2 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -8869,6 +8869,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 { };