1 { lib, python3, fetchPypi
2 , sassc, hyperkitty, postorius
8 buildPythonPackage rec {
11 disabled = pythonOlder "3.8";
15 inherit pname version;
16 hash = "sha256-3wnduej6xMQzrjGhGXQznfJud/Uoy3BDduukRJeahL8=";
20 # 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
24 substituteInPlace mailman_web/settings/base.py \
25 --replace-fail /opt/mailman/web /var/lib/mailman-web
28 nativeBuildInputs = [ pdm-backend ];
29 propagatedBuildInputs = [ hyperkitty postorius whoosh ];
31 # Tries to check runtime configuration.
35 "--suffix PATH : ${lib.makeBinPath [ sassc ]}"
38 passthru.tests = { inherit (nixosTests) mailman; };
41 homepage = "https://gitlab.com/mailman/mailman-web";
42 description = "Django project for Mailman 3 web interface";
43 mainProgram = "mailman-web";
44 license = licenses.gpl3Plus;
45 maintainers = with maintainers; [ qyliss m1cr0man ];