Skip to content

Commit

Permalink
python312Packages.diode-netbox-plugin: init at 0.6.0
Browse files Browse the repository at this point in the history
  • Loading branch information
felbinger committed Jan 16, 2025
1 parent 5f613d5 commit d2952c9
Show file tree
Hide file tree
Showing 2 changed files with 47 additions and 0 deletions.
45 changes: 45 additions & 0 deletions pkgs/development/python-modules/diode-netbox-plugin/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
{
lib,
buildPythonPackage,
fetchFromGitHub,
setuptools,
netbox,
brotli,
certifi,
grpcio,
protobuf,
}:
buildPythonPackage rec {
pname = "diode-netbox-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
];

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 @@ -3259,6 +3259,8 @@ self: super: with self; {

dio-chacon-wifi-api = callPackage ../development/python-modules/dio-chacon-wifi-api { };

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

diofant = callPackage ../development/python-modules/diofant { };

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

0 comments on commit d2952c9

Please sign in to comment.