tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
lol
0
fork
atom
overview
issues
pulls
pipelines
mailman-web: 0.0.8 -> 0.0.9
Alyssa Ross
2 years ago
a8dbe012
5d592b85
+6
-10
1 changed file
expand all
collapse all
unified
split
pkgs
servers
mail
mailman
web.nix
+6
-10
pkgs/servers/mail/mailman/web.nix
···
6
6
with python3.pkgs;
7
7
8
8
buildPythonPackage rec {
9
9
-
pname = "mailman-web";
10
10
-
version = "0.0.8";
9
9
+
pname = "mailman_web";
10
10
+
version = "0.0.9";
11
11
disabled = pythonOlder "3.8";
12
12
+
pyproject = true;
12
13
13
14
src = fetchPypi {
14
15
inherit pname version;
15
15
-
hash = "sha256-nN/L+X2Rvm6rqkscns4Tn2TAr59O5lCJObvcJp6M0+Q=";
16
16
+
hash = "sha256-3wnduej6xMQzrjGhGXQznfJud/Uoy3BDduukRJeahL8=";
16
17
};
17
18
18
19
postPatch = ''
19
19
-
# Django is depended on transitively by hyperkitty and postorius,
20
20
-
# and mailman_web has overly restrictive version bounds on it, so
21
21
-
# let's remove it.
22
22
-
sed -i '/^[[:space:]]*django/Id' setup.cfg
23
23
-
24
20
# Upstream seems to mostly target installing on top of existing
25
21
# distributions, and uses a path appropriate for that, but we are
26
22
# a distribution, so use a state directory appropriate for a
27
23
# distro package.
28
24
substituteInPlace mailman_web/settings/base.py \
29
29
-
--replace /opt/mailman/web /var/lib/mailman-web
25
25
+
--replace-fail /opt/mailman/web /var/lib/mailman-web
30
26
'';
31
27
32
32
-
nativeBuildInputs = [ setuptools-scm ];
28
28
+
nativeBuildInputs = [ pdm-backend ];
33
29
propagatedBuildInputs = [ hyperkitty postorius whoosh ];
34
30
35
31
# Tries to check runtime configuration.