2021-12-06 16:07:01 +00:00
|
|
|
{ lib
|
2022-06-16 17:23:12 +00:00
|
|
|
, python3
|
2023-07-15 17:15:38 +00:00
|
|
|
, fetchPypi
|
2021-12-06 16:07:01 +00:00
|
|
|
, mailman
|
2024-01-25 14:12:00 +00:00
|
|
|
, nixosTests
|
2021-12-06 16:07:01 +00:00
|
|
|
}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2022-06-16 17:23:12 +00:00
|
|
|
with python3.pkgs;
|
2020-04-24 23:36:52 +00:00
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "mailman-hyperkitty";
|
2023-02-02 18:25:31 +00:00
|
|
|
version = "1.2.1";
|
2021-12-06 16:07:01 +00:00
|
|
|
format = "setuptools";
|
|
|
|
|
|
|
|
disabled = pythonOlder "3.9";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2023-02-02 18:25:31 +00:00
|
|
|
sha256 = "sha256-+Nad+8bMtYKJbUCpppRXqhB1zdbvvFXTTHlwJLQLzDg=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2021-12-06 16:07:01 +00:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
mailman
|
|
|
|
requests
|
2024-01-13 08:15:51 +00:00
|
|
|
zope-interface
|
2021-12-06 16:07:01 +00:00
|
|
|
];
|
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [
|
2021-12-06 16:07:01 +00:00
|
|
|
mock
|
|
|
|
nose2
|
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
checkPhase = ''
|
2021-12-06 16:07:01 +00:00
|
|
|
${python.interpreter} -m nose2 -v
|
2020-04-24 23:36:52 +00:00
|
|
|
'';
|
2021-12-06 16:07:01 +00:00
|
|
|
|
|
|
|
# There is an AssertionError
|
2020-04-24 23:36:52 +00:00
|
|
|
doCheck = false;
|
|
|
|
|
2021-12-06 16:07:01 +00:00
|
|
|
pythonImportsCheck = [
|
|
|
|
"mailman_hyperkitty"
|
|
|
|
];
|
|
|
|
|
2024-01-25 14:12:00 +00:00
|
|
|
passthru.tests = { inherit (nixosTests) mailman; };
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "Mailman archiver plugin for HyperKitty";
|
|
|
|
homepage = "https://gitlab.com/mailman/mailman-hyperkitty";
|
2021-12-06 16:07:01 +00:00
|
|
|
license = licenses.gpl3Plus;
|
2023-11-16 04:20:00 +00:00
|
|
|
maintainers = with maintainers; [ qyliss ];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|