nixpkgs-suyu/pkgs/servers/mail/mailman/hyperkitty.nix

40 lines
1.3 KiB
Nix
Raw Normal View History

{ stdenv, buildPythonPackage, fetchPypi, isort, coverage, mock
, robot-detection, django_extensions, rjsmin, cssmin, django-mailman3
, django-haystack, flufl_lock, networkx, dateutil, defusedxml
, django-paintstore, djangorestframework, django, django-q
, django_compressor, beautifulsoup4, six, psycopg2, whoosh, elasticsearch
}:
buildPythonPackage rec {
pname = "HyperKitty";
version = "1.3.2";
src = fetchPypi {
inherit pname version;
sha256 = "092fkv0xyf5vgj33xwq0mh9h5c5d56ifwimaqbfpx5cwc6yivb88";
};
nativeBuildInputs = [ isort ];
buildInputs = [ coverage mock ];
propagatedBuildInputs = [
robot-detection django_extensions rjsmin cssmin django-mailman3
django-haystack flufl_lock networkx dateutil defusedxml
django-paintstore djangorestframework django django-q
django_compressor beautifulsoup4 six psycopg2 whoosh isort elasticsearch
];
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 ];
};
}