about summary refs log tree commit diff
path: root/pkgs/servers/mail/mailman/web.nix
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/servers/mail/mailman/web.nix')
-rw-r--r--pkgs/servers/mail/mailman/web.nix16
1 files changed, 6 insertions, 10 deletions
diff --git a/pkgs/servers/mail/mailman/web.nix b/pkgs/servers/mail/mailman/web.nix
index dc5ef230c235a..ae4320fd443a2 100644
--- a/pkgs/servers/mail/mailman/web.nix
+++ b/pkgs/servers/mail/mailman/web.nix
@@ -6,30 +6,26 @@
 with python3.pkgs;
 
 buildPythonPackage rec {
-  pname = "mailman-web";
-  version = "0.0.8";
+  pname = "mailman_web";
+  version = "0.0.9";
   disabled = pythonOlder "3.8";
+  pyproject = true;
 
   src = fetchPypi {
     inherit pname version;
-    hash = "sha256-nN/L+X2Rvm6rqkscns4Tn2TAr59O5lCJObvcJp6M0+Q=";
+    hash = "sha256-3wnduej6xMQzrjGhGXQznfJud/Uoy3BDduukRJeahL8=";
   };
 
   postPatch = ''
-    # Django is depended on transitively by hyperkitty and postorius,
-    # and mailman_web has overly restrictive version bounds on it, so
-    # let's remove it.
-    sed -i '/^[[:space:]]*django/Id' setup.cfg
-
     # Upstream seems to mostly target installing on top of existing
     # distributions, and uses a path appropriate for that, but we are
     # a distribution, so use a state directory appropriate for a
     # distro package.
     substituteInPlace mailman_web/settings/base.py \
-        --replace /opt/mailman/web /var/lib/mailman-web
+        --replace-fail /opt/mailman/web /var/lib/mailman-web
   '';
 
-  nativeBuildInputs = [ setuptools-scm ];
+  nativeBuildInputs = [ pdm-backend ];
   propagatedBuildInputs = [ hyperkitty postorius whoosh ];
 
   # Tries to check runtime configuration.