1{
2 lib,
3 python3,
4 fetchPypi,
5 nixosTests,
6}:
7
8with python3.pkgs;
9
10buildPythonPackage rec {
11 pname = "postorius";
12 version = "1.3.10";
13 format = "setuptools";
14
15 src = fetchPypi {
16 inherit pname version;
17 hash = "sha256-GmbIqO+03LgbUxJ1nTStXrYN3t2MfvzbeYRAipfTW1o=";
18 };
19
20 propagatedBuildInputs = [
21 django-mailman3
22 readme-renderer
23 ]
24 ++ readme-renderer.optional-dependencies.md;
25 nativeCheckInputs = [
26 beautifulsoup4
27 vcrpy
28 mock
29 ];
30
31 # Tries to connect to database.
32 doCheck = false;
33
34 passthru.tests = { inherit (nixosTests) mailman; };
35
36 meta = with lib; {
37 homepage = "https://docs.mailman3.org/projects/postorius";
38 description = "Web-based user interface for managing GNU Mailman";
39 license = licenses.gpl3Plus;
40 maintainers = with maintainers; [ qyliss ];
41 };
42}