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
|
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";
|
2023-08-22 20:05:09 +00:00
|
|
|
version = "1.3.7";
|
2021-12-06 16:07:01 +00:00
|
|
|
disabled = pythonOlder "3.8";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2023-08-22 20:05:09 +00:00
|
|
|
sha256 = "sha256-TXSso+wwVGdBymIzns5yOS4pj1EdConmm87b/NyBAss=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2022-05-18 14:49:53 +00:00
|
|
|
patches = [
|
2023-08-22 20:05:09 +00:00
|
|
|
./0001-Disable-broken-test_help_output-testcase.patch
|
2022-05-18 14:49:53 +00:00
|
|
|
];
|
|
|
|
|
2021-12-06 16:07:01 +00:00
|
|
|
postPatch = ''
|
|
|
|
# isort is a development dependency
|
|
|
|
sed -i '/isort/d' setup.py
|
2022-02-10 20:34:41 +00:00
|
|
|
# Fix mistune imports for mistune >= 2.0.0
|
|
|
|
# https://gitlab.com/mailman/hyperkitty/-/merge_requests/379
|
|
|
|
sed -i 's/mistune.scanner/mistune.util/' hyperkitty/lib/renderer.py
|
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
|
|
|
|
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
|
|
|
|
# listed as dependencies in setup.py. 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
|
|
|
|
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
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
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;
|
2021-10-17 02:12:59 +00:00
|
|
|
maintainers = with lib.maintainers; [ globin qyliss ];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|