From 9c76ff315748e4f2dc057eff506985c63d9d381b Mon Sep 17 00:00:00 2001 From: Minijackson Date: Tue, 28 Apr 2026 20:56:01 +0200 Subject: [PATCH] netbox: fix use of django-tables2 3.0 fixes #512843 This pulls a patch that was reverted, because upstream wanted to wait for a new major NetBox release. --- pkgs/by-name/ne/netbox_4_5/package.nix | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/pkgs/by-name/ne/netbox_4_5/package.nix b/pkgs/by-name/ne/netbox_4_5/package.nix index 563d23e6b49b..9df6802b9991 100644 --- a/pkgs/by-name/ne/netbox_4_5/package.nix +++ b/pkgs/by-name/ne/netbox_4_5/package.nix @@ -2,6 +2,7 @@ lib, fetchFromGitHub, python3, + fetchpatch2, plugins ? _ps: [ ], nixosTests, nix-update-script, @@ -28,6 +29,12 @@ py.pkgs.buildPythonApplication rec { patches = [ ./custom-static-root.patch + # TODO: check if change is applied upstream before upgrading to NetBox v4.6 + (fetchpatch2 { + name = "upgrade-django-tables2-v3.0.patch"; + url = "https://github.com/netbox-community/netbox/commit/d57346d9f0eef8126eafcd5033ea43864faeaf0d.patch"; + hash = "sha256-6/wdd8wDVT4eqDKMNx8tmoPTDvw8OE7atf9nzg3LZzk="; + }) ]; dependencies =