Tom Hubrecht
030803ba29
All checks were successful
Build all the nodes / geo02 (push) Successful in 1m32s
Build all the nodes / geo01 (push) Successful in 1m34s
Build all the nodes / rescue01 (push) Successful in 1m43s
Build all the nodes / bridge01 (push) Successful in 1m45s
Build all the nodes / storage01 (push) Successful in 1m43s
Build all the nodes / compute01 (push) Successful in 2m9s
Run pre-commit on all files / check (push) Successful in 25s
Build all the nodes / web02 (push) Successful in 58s
Build all the nodes / vault01 (push) Successful in 1m13s
Build all the nodes / web03 (push) Successful in 1m4s
Build all the nodes / web01 (push) Successful in 1m31s
70 lines
1.7 KiB
Diff
70 lines
1.7 KiB
Diff
diff --git a/pkgs/development/python-modules/netbox-qrcode/default.nix b/pkgs/development/python-modules/netbox-qrcode/default.nix
|
|
new file mode 100644
|
|
index 000000000000..b378b839a8dc
|
|
--- /dev/null
|
|
+++ b/pkgs/development/python-modules/netbox-qrcode/default.nix
|
|
@@ -0,0 +1,51 @@
|
|
+{ lib
|
|
+, buildPythonPackage
|
|
+, fetchFromGitHub
|
|
+, setuptools
|
|
+, wheel
|
|
+, pillow
|
|
+, qrcode
|
|
+, netbox
|
|
+}:
|
|
+
|
|
+buildPythonPackage rec {
|
|
+ pname = "netbox-qrcode";
|
|
+ version = "0.0.13";
|
|
+ pyproject = true;
|
|
+
|
|
+ src = fetchFromGitHub {
|
|
+ owner = "netbox-community";
|
|
+ repo = "netbox-qrcode";
|
|
+ rev = "v${version}";
|
|
+ hash = "sha256-/labSZyB1SkU/uemuL946RDk8IVEAgCYJY2vrJFney0=";
|
|
+ };
|
|
+
|
|
+ nativeBuildInputs = [
|
|
+ setuptools
|
|
+ wheel
|
|
+ ];
|
|
+
|
|
+ propagatedBuildInputs = [
|
|
+ qrcode
|
|
+ pillow
|
|
+ ];
|
|
+
|
|
+ checkInputs = [
|
|
+ netbox
|
|
+ ];
|
|
+
|
|
+ preFixup = ''
|
|
+ export PYTHONPATH=${netbox}/opt/netbox/netbox:$PYTHONPATH
|
|
+ '';
|
|
+
|
|
+ pythonImportsCheck = [
|
|
+ "netbox_qrcode"
|
|
+ ];
|
|
+
|
|
+ meta = with lib; {
|
|
+ description = "NetBox Plugin for generate QR Codes";
|
|
+ homepage = "https://github.com/netbox-community/netbox-qrcode";
|
|
+ license = licenses.asl20;
|
|
+ maintainers = with maintainers; [ sinavir ];
|
|
+ };
|
|
+}
|
|
diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix
|
|
index 9999d745e3ac..b226e0063672 100644
|
|
--- a/pkgs/top-level/python-packages.nix
|
|
+++ b/pkgs/top-level/python-packages.nix
|
|
@@ -8989,6 +8989,8 @@ self: super: with self; {
|
|
|
|
netbox-reorder-rack = callPackage ../development/python-modules/netbox-reorder-rack { };
|
|
|
|
+ netbox-qrcode = callPackage ../development/python-modules/netbox-qrcode { };
|
|
+
|
|
netcdf4 = callPackage ../development/python-modules/netcdf4 { };
|
|
|
|
netdata = callPackage ../development/python-modules/netdata { };
|