From 638958e9ae0e570d540c7f26d0c3ca2333ca456c Mon Sep 17 00:00:00 2001 From: Alyssa Ross Date: Sat, 21 Feb 2026 16:20:14 +0100 Subject: [PATCH] mailmanPackages.web: backport Django 5.2 compat --- pkgs/servers/mail/mailman/web.nix | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/pkgs/servers/mail/mailman/web.nix b/pkgs/servers/mail/mailman/web.nix index 5a928a8f22a3..1a2b363c7cd7 100644 --- a/pkgs/servers/mail/mailman/web.nix +++ b/pkgs/servers/mail/mailman/web.nix @@ -2,6 +2,7 @@ lib, python3, fetchPypi, + fetchpatch, sassc, hyperkitty, postorius, @@ -20,6 +21,15 @@ buildPythonPackage rec { hash = "sha256-3wnduej6xMQzrjGhGXQznfJud/Uoy3BDduukRJeahL8="; }; + patches = [ + (fetchpatch { + name = "django-5.2.patch"; + url = "https://gitlab.com/mailman/mailman-web/-/commit/bf3eae03ba6ed416ff58e63ea30dd4b95f310e46.patch"; + includes = [ "pyproject.toml" ]; + hash = "sha256-NcXFXYJe3ve4qAGzOVZv9hBx4MTwxRtIYp1GRD1g0qw="; + }) + ]; + postPatch = '' # Upstream seems to mostly target installing on top of existing # distributions, and uses a path appropriate for that, but we are