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