From d2952c950da741b1ba53bc729ef9584888b86f3e Mon Sep 17 00:00:00 2001 From: Nico Felbinger Date: Thu, 16 Jan 2025 19:34:44 +0100 Subject: [PATCH] python312Packages.diode-netbox-plugin: init at 0.6.0 --- .../diode-netbox-plugin/default.nix | 45 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 + 2 files changed, 47 insertions(+) create mode 100644 pkgs/development/python-modules/diode-netbox-plugin/default.nix diff --git a/pkgs/development/python-modules/diode-netbox-plugin/default.nix b/pkgs/development/python-modules/diode-netbox-plugin/default.nix new file mode 100644 index 00000000000000..d9087915909bba --- /dev/null +++ b/pkgs/development/python-modules/diode-netbox-plugin/default.nix @@ -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 ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index c0b4b6e5bfd4f7..4776e03e910d31 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -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 { };