2020-01-10 21:19:14 +01:00
|
|
|
{ stdenv, buildPythonPackage, fetchPypi, isPy3k, isort, coverage, mock
|
2019-08-30 14:23:02 +02:00
|
|
|
, robot-detection, django_extensions, rjsmin, cssmin, django-mailman3
|
2019-12-16 19:06:10 +01:00
|
|
|
, django-haystack, flufl_lock, networkx, dateutil, defusedxml
|
2019-08-30 14:23:02 +02:00
|
|
|
, django-paintstore, djangorestframework, django, django-q
|
2019-12-16 19:06:10 +01:00
|
|
|
, django_compressor, beautifulsoup4, six, psycopg2, whoosh, elasticsearch
|
2019-08-30 14:23:02 +02:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "HyperKitty";
|
2020-06-04 05:58:48 +02:00
|
|
|
version = "1.3.3";
|
2020-01-10 21:19:14 +01:00
|
|
|
disabled = !isPy3k;
|
2019-08-30 14:23:02 +02:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2020-06-04 05:58:48 +02:00
|
|
|
sha256 = "0p85r9q6mn5as5b39xp9hkkipnk0156acx540n2ygk3qb3jd4a5n";
|
2019-08-30 14:23:02 +02:00
|
|
|
};
|
|
|
|
|
2019-12-16 19:06:10 +01:00
|
|
|
nativeBuildInputs = [ isort ];
|
2019-08-30 14:23:02 +02:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
robot-detection django_extensions rjsmin cssmin django-mailman3
|
2019-12-16 19:06:10 +01:00
|
|
|
django-haystack flufl_lock networkx dateutil defusedxml
|
2019-08-30 14:23:02 +02:00
|
|
|
django-paintstore djangorestframework django django-q
|
2020-01-17 02:57:13 +01:00
|
|
|
django_compressor six psycopg2 isort
|
2019-08-30 14:23:02 +02:00
|
|
|
];
|
|
|
|
|
2020-01-17 02:57:13 +01: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.
|
|
|
|
checkInputs = [ beautifulsoup4 coverage elasticsearch mock whoosh ];
|
|
|
|
|
2019-08-30 14:23:02 +02:00
|
|
|
checkPhase = ''
|
|
|
|
cd $NIX_BUILD_TOP/$sourceRoot
|
|
|
|
PYTHONPATH=.:$PYTHONPATH python example_project/manage.py test \
|
|
|
|
--settings=hyperkitty.tests.settings_test hyperkitty
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = {
|
2019-10-22 20:35:52 +02:00
|
|
|
homepage = "https://www.gnu.org/software/mailman/";
|
2019-08-30 14:23:02 +02:00
|
|
|
description = "Archiver for GNU Mailman v3";
|
|
|
|
license = stdenv.lib.licenses.gpl3;
|
|
|
|
platforms = stdenv.lib.platforms.linux;
|
|
|
|
maintainers = with stdenv.lib.maintainers; [ peti globin ];
|
|
|
|
};
|
|
|
|
}
|