2021-11-05 21:45:42 +00:00
|
|
|
{ lib
|
2022-04-26 10:19:41 +00:00
|
|
|
, python3
|
2023-05-25 18:37:59 +00:00
|
|
|
, fetchPypi
|
2021-11-05 21:45:42 +00:00
|
|
|
, mailman
|
2024-01-19 12:06:57 +00:00
|
|
|
, nixosTests
|
2021-11-05 21:45:42 +00:00
|
|
|
}:
|
2019-08-31 12:45:33 +00:00
|
|
|
|
2022-04-26 10:19:41 +00:00
|
|
|
with python3.pkgs;
|
2019-08-31 12:45:33 +00:00
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "mailman-hyperkitty";
|
2023-01-07 04:28:02 +00:00
|
|
|
version = "1.2.1";
|
2021-11-05 21:45:42 +00:00
|
|
|
format = "setuptools";
|
2019-08-31 12:45:33 +00:00
|
|
|
|
2021-11-11 21:03:33 +00:00
|
|
|
disabled = pythonOlder "3.9";
|
|
|
|
|
2019-08-31 12:45:33 +00:00
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2023-01-07 04:28:02 +00:00
|
|
|
sha256 = "sha256-+Nad+8bMtYKJbUCpppRXqhB1zdbvvFXTTHlwJLQLzDg=";
|
2019-08-31 12:45:33 +00:00
|
|
|
};
|
|
|
|
|
2021-11-05 21:45:42 +00:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
mailman
|
|
|
|
requests
|
2024-01-06 18:05:46 +00:00
|
|
|
zope-interface
|
2021-11-05 21:45:42 +00:00
|
|
|
];
|
|
|
|
|
2023-01-21 12:00:00 +00:00
|
|
|
nativeCheckInputs = [
|
2021-11-05 21:45:42 +00:00
|
|
|
mock
|
|
|
|
nose2
|
|
|
|
];
|
2019-08-31 12:45:33 +00:00
|
|
|
|
|
|
|
checkPhase = ''
|
2021-11-05 21:45:42 +00:00
|
|
|
${python.interpreter} -m nose2 -v
|
2019-08-31 12:45:33 +00:00
|
|
|
'';
|
2021-11-05 21:45:42 +00:00
|
|
|
|
|
|
|
# There is an AssertionError
|
2019-08-31 12:45:33 +00:00
|
|
|
doCheck = false;
|
|
|
|
|
2021-11-05 21:45:42 +00:00
|
|
|
pythonImportsCheck = [
|
|
|
|
"mailman_hyperkitty"
|
|
|
|
];
|
|
|
|
|
2024-01-19 12:06:57 +00:00
|
|
|
passthru.tests = { inherit (nixosTests) mailman; };
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2019-08-31 12:45:33 +00:00
|
|
|
description = "Mailman archiver plugin for HyperKitty";
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "https://gitlab.com/mailman/mailman-hyperkitty";
|
2021-11-05 21:45:42 +00:00
|
|
|
license = licenses.gpl3Plus;
|
2023-10-24 11:09:45 +00:00
|
|
|
maintainers = with maintainers; [ qyliss ];
|
2019-08-31 12:45:33 +00:00
|
|
|
};
|
|
|
|
}
|