Files
Alyssa Ross 1abd4ccdd3 mailmanPackages.postorius: 1.3.10 -> 1.3.13
Even though the previous version worked fine with our current Django,
this version adds a tight version check, so we have to backport the
unreleased loosening of that check.
2026-05-07 09:06:24 +02:00

64 lines
1.5 KiB
Nix

{
lib,
python3,
fetchPypi,
fetchpatch,
nixosTests,
}:
with python3.pkgs;
buildPythonPackage (finalAttrs: {
pname = "postorius";
version = "1.3.13";
format = "pyproject";
src = fetchPypi {
inherit (finalAttrs) pname version;
hash = "sha256-YC3vXEhSkA1J6K2VGWojNOE8MeSdnAhZMkh558UTGiI=";
};
patches = [
(fetchpatch {
name = "security-fix.patch";
url = "https://gitlab.com/mailman/postorius/-/commit/c4706abd05ba6bcf472fc674b160d3a9d6a4868b.patch";
excludes = [ "src/postorius/doc/news.rst" ];
hash = "sha256-M8C7mO/KoVhl1YtZ5x3wqL+aBkepJ/7NoIRUmd0JpiM=";
})
(fetchpatch {
name = "django-5.2.patch";
url = "https://gitlab.com/mailman/postorius/-/commit/0468ab0329df85b89e6b5d9f7b4d1805f47450c9.patch";
excludes = [
".gitlab-ci.yml"
"src/postorius/doc/news.rst"
];
hash = "sha256-4yk7hLF6cRfS7Kelr49LPeVfrqvNoX1jxTy8sdGrMAk=";
})
];
build-system = [ pdm-backend ];
dependencies = [
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 = {
homepage = "https://docs.mailman3.org/projects/postorius";
description = "Web-based user interface for managing GNU Mailman";
license = lib.licenses.gpl3Plus;
maintainers = with lib.maintainers; [ qyliss ];
};
})