···6with python3.pkgs;
78buildPythonPackage rec {
9- pname = "mailman-web";
10- version = "0.0.8";
11 disabled = pythonOlder "3.8";
01213 src = fetchPypi {
14 inherit pname version;
15- hash = "sha256-nN/L+X2Rvm6rqkscns4Tn2TAr59O5lCJObvcJp6M0+Q=";
16 };
1718 postPatch = ''
19- # Django is depended on transitively by hyperkitty and postorius,
20- # and mailman_web has overly restrictive version bounds on it, so
21- # let's remove it.
22- sed -i '/^[[:space:]]*django/Id' setup.cfg
23-24 # Upstream seems to mostly target installing on top of existing
25 # distributions, and uses a path appropriate for that, but we are
26 # a distribution, so use a state directory appropriate for a
27 # distro package.
28 substituteInPlace mailman_web/settings/base.py \
29- --replace /opt/mailman/web /var/lib/mailman-web
30 '';
3132- nativeBuildInputs = [ setuptools-scm ];
33 propagatedBuildInputs = [ hyperkitty postorius whoosh ];
3435 # Tries to check runtime configuration.
···6with python3.pkgs;
78buildPythonPackage rec {
9+ pname = "mailman_web";
10+ version = "0.0.9";
11 disabled = pythonOlder "3.8";
12+ pyproject = true;
1314 src = fetchPypi {
15 inherit pname version;
16+ hash = "sha256-3wnduej6xMQzrjGhGXQznfJud/Uoy3BDduukRJeahL8=";
17 };
1819 postPatch = ''
0000020 # Upstream seems to mostly target installing on top of existing
21 # distributions, and uses a path appropriate for that, but we are
22 # a distribution, so use a state directory appropriate for a
23 # distro package.
24 substituteInPlace mailman_web/settings/base.py \
25+ --replace-fail /opt/mailman/web /var/lib/mailman-web
26 '';
2728+ nativeBuildInputs = [ pdm-backend ];
29 propagatedBuildInputs = [ hyperkitty postorius whoosh ];
3031 # Tries to check runtime configuration.