about summary refs log tree commit diff
path: root/nixpkgs/pkgs/servers/mail/mailman/postorius.nix
diff options
context:
space:
mode:
Diffstat (limited to 'nixpkgs/pkgs/servers/mail/mailman/postorius.nix')
-rw-r--r--nixpkgs/pkgs/servers/mail/mailman/postorius.nix28
1 files changed, 28 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/servers/mail/mailman/postorius.nix b/nixpkgs/pkgs/servers/mail/mailman/postorius.nix
new file mode 100644
index 000000000000..1f3171f18a7f
--- /dev/null
+++ b/nixpkgs/pkgs/servers/mail/mailman/postorius.nix
@@ -0,0 +1,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 ];
+  };
+}