2021-12-06 16:07:01 +00:00
|
|
|
{ lib
|
2022-06-16 17:23:12 +00:00
|
|
|
, python3
|
2024-04-21 15:54:59 +00:00
|
|
|
, fetchurl
|
2024-01-25 14:12:00 +00:00
|
|
|
, nixosTests
|
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 = "HyperKitty";
|
2024-04-21 15:54:59 +00:00
|
|
|
version = "1.3.9";
|
|
|
|
pyproject = true;
|
|
|
|
|
2024-01-25 14:12:00 +00:00
|
|
|
disabled = pythonOlder "3.10";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2024-04-21 15:54:59 +00:00
|
|
|
src = fetchurl {
|
|
|
|
url = "https://gitlab.com/mailman/hyperkitty/-/releases/${version}/downloads/hyperkitty-${version}.tar.gz";
|
|
|
|
hash = "sha256-BfhCh4zZcfwoIfubW/+MUWXwh1yFOH/jpRdQdsj6lME=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2024-04-21 15:54:59 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
pdm-backend
|
|
|
|
];
|
2021-12-06 16:07:01 +00:00
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
propagatedBuildInputs = [
|
2021-12-06 16:07:01 +00:00
|
|
|
django
|
|
|
|
django-gravatar2
|
|
|
|
django-haystack
|
|
|
|
django-mailman3
|
|
|
|
django-q
|
2022-08-12 12:06:08 +00:00
|
|
|
django-compressor
|
2022-01-13 20:06:32 +00:00
|
|
|
django-extensions
|
2021-12-06 16:07:01 +00:00
|
|
|
djangorestframework
|
2024-02-29 20:09:43 +00:00
|
|
|
flufl-lock
|
2022-08-21 13:32:41 +00:00
|
|
|
mistune
|
2021-12-06 16:07:01 +00:00
|
|
|
networkx
|
|
|
|
psycopg2
|
|
|
|
python-dateutil
|
|
|
|
robot-detection
|
2020-04-24 23:36:52 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
# Some of these are optional runtime dependencies that are not
|
2024-04-21 15:54:59 +00:00
|
|
|
# listed as dependencies in pyproject.toml. To use these, they
|
|
|
|
# should be dependencies of the Django Python environment, but not
|
|
|
|
# of HyperKitty so they're not included for people who don't need
|
|
|
|
# them.
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [
|
2021-12-06 16:07:01 +00:00
|
|
|
beautifulsoup4
|
2024-01-25 14:12:00 +00:00
|
|
|
elastic-transport
|
2021-12-06 16:07:01 +00:00
|
|
|
elasticsearch
|
|
|
|
mock
|
|
|
|
whoosh
|
2023-05-24 13:37:59 +00:00
|
|
|
] ++ beautifulsoup4.optional-dependencies.lxml;
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
checkPhase = ''
|
|
|
|
cd $NIX_BUILD_TOP/$sourceRoot
|
|
|
|
PYTHONPATH=.:$PYTHONPATH python example_project/manage.py test \
|
|
|
|
--settings=hyperkitty.tests.settings_test hyperkitty
|
|
|
|
'';
|
|
|
|
|
2024-01-25 14:12:00 +00:00
|
|
|
passthru.tests = { inherit (nixosTests) mailman; };
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
meta = {
|
2024-01-25 14:12:00 +00:00
|
|
|
changelog = "https://docs.mailman3.org/projects/hyperkitty/en/latest/news.html";
|
2020-04-24 23:36:52 +00:00
|
|
|
homepage = "https://www.gnu.org/software/mailman/";
|
|
|
|
description = "Archiver for GNU Mailman v3";
|
2021-01-15 22:18:51 +00:00
|
|
|
license = lib.licenses.gpl3;
|
|
|
|
platforms = lib.platforms.linux;
|
2023-11-16 04:20:00 +00:00
|
|
|
maintainers = with lib.maintainers; [ qyliss ];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|