1 { lib, python3, fetchPypi
2 , sassc, hyperkitty, postorius
8 buildPythonPackage rec {
11 disabled = pythonOlder "3.8";
14 inherit pname version;
15 hash = "sha256-nN/L+X2Rvm6rqkscns4Tn2TAr59O5lCJObvcJp6M0+Q=";
19 # Django is depended on transitively by hyperkitty and postorius,
20 # and mailman_web has overly restrictive version bounds on it, so
22 sed -i '/^[[:space:]]*django/Id' setup.cfg
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
28 substituteInPlace mailman_web/settings/base.py \
29 --replace /opt/mailman/web /var/lib/mailman-web
32 nativeBuildInputs = [ setuptools-scm ];
33 propagatedBuildInputs = [ hyperkitty postorius whoosh ];
35 # Tries to check runtime configuration.
39 "--suffix PATH : ${lib.makeBinPath [ sassc ]}"
42 passthru.tests = { inherit (nixosTests) mailman; };
45 homepage = "https://gitlab.com/mailman/mailman-web";
46 description = "Django project for Mailman 3 web interface";
47 mainProgram = "mailman-web";
48 license = licenses.gpl3Plus;
49 maintainers = with maintainers; [ qyliss m1cr0man ];