13 buildPythonPackage rec {
14 pname = "mailman_web";
16 disabled = pythonOlder "3.8";
20 inherit pname version;
21 hash = "sha256-3wnduej6xMQzrjGhGXQznfJud/Uoy3BDduukRJeahL8=";
25 # Upstream seems to mostly target installing on top of existing
26 # distributions, and uses a path appropriate for that, but we are
27 # a distribution, so use a state directory appropriate for a
29 substituteInPlace mailman_web/settings/base.py \
30 --replace-fail /opt/mailman/web /var/lib/mailman-web
33 nativeBuildInputs = [ pdm-backend ];
34 propagatedBuildInputs = [
40 # Tries to check runtime configuration.
44 "--suffix PATH : ${lib.makeBinPath [ sassc ]}"
47 passthru.tests = { inherit (nixosTests) mailman; };
50 homepage = "https://gitlab.com/mailman/mailman-web";
51 description = "Django project for Mailman 3 web interface";
52 mainProgram = "mailman-web";
53 license = licenses.gpl3Plus;
54 maintainers = with maintainers; [