1{
2 lib,
3 python3,
4 fetchPypi,
5 mailman,
6 nixosTests,
7}:
8
9with python3.pkgs;
10buildPythonPackage rec {
11 pname = "mailman-hyperkitty";
12 version = "1.2.1";
13 format = "setuptools";
14
15 disabled = pythonOlder "3.9";
16
17 src = fetchPypi {
18 inherit pname version;
19 hash = "sha256-+Nad+8bMtYKJbUCpppRXqhB1zdbvvFXTTHlwJLQLzDg=";
20 };
21
22 propagatedBuildInputs = [
23 mailman
24 requests
25 zope-interface
26 ];
27
28 nativeCheckInputs = [
29 mock
30 nose2
31 ];
32
33 checkPhase = ''
34 ${python.interpreter} -m nose2 -v
35 '';
36
37 # There is an AssertionError
38 doCheck = false;
39
40 pythonImportsCheck = [
41 "mailman_hyperkitty"
42 ];
43
44 passthru.tests = { inherit (nixosTests) mailman; };
45
46 meta = with lib; {
47 description = "Mailman archiver plugin for HyperKitty";
48 homepage = "https://gitlab.com/mailman/mailman-hyperkitty";
49 license = licenses.gpl3Plus;
50 maintainers = with maintainers; [ qyliss ];
51 };
52}