about summary refs log tree commit diff
path: root/nixpkgs/pkgs/servers/mail/mailman/postorius.nix
blob: 1f3171f18a7f42aa4b7b5fde2c9f0a1d85b7b1a1 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
{ lib, python3, fetchPypi, nixosTests }:

with python3.pkgs;

buildPythonPackage rec {
  pname = "postorius";
  version = "1.3.10";

  src = fetchPypi {
    inherit pname version;
    hash = "sha256-GmbIqO+03LgbUxJ1nTStXrYN3t2MfvzbeYRAipfTW1o=";
  };

  propagatedBuildInputs = [ django-mailman3 readme-renderer ];
  nativeCheckInputs = [ beautifulsoup4 vcrpy mock ];

  # Tries to connect to database.
  doCheck = false;

  passthru.tests = { inherit (nixosTests) mailman; };

  meta = with lib; {
    homepage = "https://docs.mailman3.org/projects/postorius";
    description = "Web-based user interface for managing GNU Mailman";
    license = licenses.gpl3Plus;
    maintainers = with maintainers; [ qyliss ];
  };
}