blob: f25a2ac011a8423bf54ef1ba8e86befe8eae38ed (
plain)
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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
|
{
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 ];
};
})
|