2019-12-16 19:06:10 +01:00
|
|
|
{ stdenv, buildPythonPackage, fetchPypi, 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";
|
2019-12-16 19:06:10 +01:00
|
|
|
version = "1.3.2";
|
2019-08-30 14:23:02 +02:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2019-12-16 19:06:10 +01:00
|
|
|
sha256 = "092fkv0xyf5vgj33xwq0mh9h5c5d56ifwimaqbfpx5cwc6yivb88";
|
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
|
|
|
buildInputs = [ coverage mock ];
|
|
|
|
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
|
2019-12-16 19:06:10 +01:00
|
|
|
django_compressor beautifulsoup4 six psycopg2 whoosh isort elasticsearch
|
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 = {
|
|
|
|
homepage = "http://www.gnu.org/software/mailman/";
|
|
|
|
description = "Archiver for GNU Mailman v3";
|
|
|
|
license = stdenv.lib.licenses.gpl3;
|
|
|
|
platforms = stdenv.lib.platforms.linux;
|
|
|
|
maintainers = with stdenv.lib.maintainers; [ peti globin ];
|
|
|
|
};
|
|
|
|
}
|