diff --git a/pkgs/servers/mail/mailman/web.nix b/pkgs/servers/mail/mailman/web.nix index dc5ef230c235..ae4320fd443a 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.