Skip to content

Commit

Permalink
python312Packages.netbox-diode-plugin: init at 0.6.0
Browse files Browse the repository at this point in the history
  • Loading branch information
felbinger committed Jan 17, 2025
1 parent 710a4c8 commit 25d135e
Show file tree
Hide file tree
Showing 2 changed files with 51 additions and 0 deletions.
49 changes: 49 additions & 0 deletions pkgs/development/python-modules/netbox-diode-plugin/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
{
lib,
buildPythonPackage,
fetchFromGitHub,
setuptools,
netbox,
brotli,
certifi,
grpcio,
protobuf,
}:
buildPythonPackage rec {
pname = "netbox-diode-plugin";
version = "0.6.0";
pyproject = true;

src = fetchFromGitHub {
owner = "netboxlabs";
repo = "diode-netbox-plugin";
rev = "v${version}";
hash = "sha256-VamAjgPUwU2N69r4cFZkg3f6bY4LMXk/4IE85/27n/U=";
};

build-system = [ setuptools ];

nativeCheckInputs = [ netbox ];

dependencies = [
brotli
certifi
grpcio
protobuf
];

postPatch = ''
sed -i -E 's/(certifi|grpcio|protobuf)==[0-9\.]*/\1/' pyproject.toml
'';

pythonImportsCheck = [ "netbox_diode_plugin" ];

meta = {
description = "Official NetBox Labs plugin for NetBox for Diode";
homepage = "https://github.com/netboxlabs/diode-netbox-plugin";
changelog = "https://github.com/netboxlabs/diode-netbox-plugin/releases/tag/${src.rev}";
license = lib.licenses.polyFormShield;
platforms = lib.platforms.linux;
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 @@ -9162,6 +9162,8 @@ self: super: with self; {

netbox-bgp = callPackage ../development/python-modules/netbox-bgp { };

netbox-diode-plugin = callPackage ../development/python-modules/netbox-diode-plugin { };

netbox-dns = callPackage ../development/python-modules/netbox-dns { };

netbox-documents = callPackage ../development/python-modules/netbox-documents { };
Expand Down

0 comments on commit 25d135e

Please sign in to comment.