chore(npins): Revert failed update
All checks were successful
Build all the nodes / ap01 (push) Successful in 52s
Build all the nodes / netcore01 (push) Successful in 28s
Build all the nodes / netaccess01 (push) Successful in 40s
Build all the nodes / netcore02 (push) Successful in 44s
Build the shell / build-shell (push) Successful in 33s
Build all the nodes / build01 (push) Successful in 2m1s
Run pre-commit on all files / pre-commit (push) Successful in 44s
Build all the nodes / geo01 (push) Successful in 1m58s
Build all the nodes / compute01 (push) Successful in 2m55s
Build all the nodes / web03 (push) Successful in 2m16s
Build all the nodes / bridge01 (push) Successful in 4m22s
Build all the nodes / hypervisor01 (push) Successful in 3m55s
Build all the nodes / geo02 (push) Successful in 3m57s
Build all the nodes / hypervisor02 (push) Successful in 4m3s
Build all the nodes / tower01 (push) Successful in 3m22s
Build all the nodes / hypervisor03 (push) Successful in 4m7s
Build all the nodes / storage01 (push) Successful in 3m29s
Build all the nodes / vault01 (push) Successful in 3m37s
Build all the nodes / rescue01 (push) Successful in 4m4s
Build all the nodes / web02 (push) Successful in 3m31s
Build all the nodes / web01 (push) Successful in 3m44s

This reverts commit e1c6b1b749.
This commit is contained in:
Tom Hubrecht 2025-02-10 16:51:43 +01:00
parent e1c6b1b749
commit 85374e9d6c
Signed by: thubrecht
SSH key fingerprint: SHA256:CYNvFo44Ar9qCNnWNnvJVhs0QXO9AZjOLlPeWcSij3Q
3 changed files with 78 additions and 2 deletions

View file

@ -286,8 +286,8 @@
"nixos-24.11": {
"type": "Channel",
"name": "nixos-24.11",
"url": "https://releases.nixos.org/nixos/24.11/nixos-24.11.714287.a45fa362d887/nixexprs.tar.xz",
"hash": "1n10rra2j4zfyj12c930dwy2hjyvscgfqalbvf2g7wvmdy4ysm2z"
"url": "https://releases.nixos.org/nixos/24.11/nixos-24.11.713099.67e9c8808988/nixexprs.tar.xz",
"hash": "1i9micd4d0wmmfl9s5zqvpssany2v4s1h3l1lc2pipi3asrgxx0n"
},
"nixos-generators": {
"type": "Git",

View file

@ -22,6 +22,12 @@ in
# Crabfit: don't depend on all google-fonts
(local ./nixpkgs/03-crabfit-karla.patch)
# netbox qrcode plugin
(local ./nixpkgs/06-netbox-qrcode.patch)
# Fix pretix tests
(npr 374822 "sha256-vM6l8Pb6F5HoZrpG4Ay3DdwwHBbv8MQy2Bo4gfiQ5zM=")
# pretalx env file option
(local ./nixpkgs/01-pretalx-environment-file.patch)

View file

@ -0,0 +1,70 @@
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 { };