2021-02-05 17:12:51 +00:00
|
|
|
{ lib, buildPythonPackage, fetchPypi, isPy3k, isort, coverage, mock
|
2020-04-24 23:36:52 +00:00
|
|
|
, robot-detection, django_extensions, rjsmin, cssmin, django-mailman3
|
2021-07-04 02:40:35 +00:00
|
|
|
, django-haystack, flufl_lock, networkx, python-dateutil, defusedxml
|
2020-04-24 23:36:52 +00:00
|
|
|
, django-paintstore, djangorestframework, django, django-q
|
|
|
|
, django_compressor, beautifulsoup4, six, psycopg2, whoosh, elasticsearch
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "HyperKitty";
|
2021-04-05 15:23:46 +00:00
|
|
|
# Note: Mailman core must be on the latest version before upgrading HyperKitty.
|
|
|
|
# See: https://gitlab.com/mailman/postorius/-/issues/516#note_544571309
|
2021-04-22 02:08:21 +00:00
|
|
|
version = "1.3.4";
|
2020-04-24 23:36:52 +00:00
|
|
|
disabled = !isPy3k;
|
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2021-04-22 02:08:21 +00:00
|
|
|
sha256 = "1lbh8n66fp3l5s0xvmvsbfvgs3z4knx0gwf0q117n2nfkslf13zp";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ isort ];
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
robot-detection django_extensions rjsmin cssmin django-mailman3
|
2021-07-04 02:40:35 +00:00
|
|
|
django-haystack flufl_lock networkx python-dateutil defusedxml
|
2020-04-24 23:36:52 +00:00
|
|
|
django-paintstore djangorestframework django django-q
|
|
|
|
django_compressor six psycopg2 isort
|
|
|
|
];
|
|
|
|
|
|
|
|
# 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.
|
|
|
|
checkInputs = [ beautifulsoup4 coverage elasticsearch mock whoosh ];
|
|
|
|
|
|
|
|
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-04-18 02:13:31 +00:00
|
|
|
maintainers = with lib.maintainers; [ peti globin qyliss ];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|