nixpkgs/pkgs/servers/mail/mailman/postorius.nix
Alyssa Ross f34ee18635 mailmanPackages.postorius: use optional-dependencies
We have a mechanism for this — we don't need an overlay hack.

Fixes: 04952ac5c3 ("mailmanPackages.python3: fix markdown support")
2024-08-07 13:27:50 +02:00

31 lines
771 B
Nix

{ 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
] ++ readme-renderer.optional-dependencies.md;
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 ];
};
}