diff options
author | Peter Simons <simons@cryp.to> | 2019-08-30 14:23:02 +0200 |
---|---|---|
committer | Peter Simons <simons@cryp.to> | 2019-08-30 14:25:13 +0200 |
commit | 131910992beecf518df8d2420750978d343d2e9c (patch) | |
tree | 40b1929dff24bb717433895f3a6a6db6e9290bde /pkgs/servers/mail | |
parent | 9c46c35bbb78f2a2d7766908fa0904e071547353 (diff) |
python-HyperKitty: initial version 1.2.2
Package the mail archiver for GNU Mailman. I liberally borrowed code from @globin's repository [1]. [1] https://github.com/mayflower/nixexprs/tree/master/pkgs/python
Diffstat (limited to 'pkgs/servers/mail')
-rw-r--r-- | pkgs/servers/mail/mailman/hyperkitty.nix | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/pkgs/servers/mail/mailman/hyperkitty.nix b/pkgs/servers/mail/mailman/hyperkitty.nix new file mode 100644 index 0000000000000..8f060da34461b --- /dev/null +++ b/pkgs/servers/mail/mailman/hyperkitty.nix @@ -0,0 +1,38 @@ +{ stdenv, buildPythonPackage, fetchPypi, coverage, mock +, robot-detection, django_extensions, rjsmin, cssmin, django-mailman3 +, django-haystack, lockfile, networkx, dateutil, defusedxml +, django-paintstore, djangorestframework, django, django-q +, django_compressor, beautifulsoup4, six, psycopg2, whoosh +}: + +buildPythonPackage rec { + pname = "HyperKitty"; + version = "1.2.2"; + + src = fetchPypi { + inherit pname version; + sha256 = "1z2zswlml6nppxhzw9a4nrj7i5wsxd29s3q78ka1rwr5m5n7s1rz"; + }; + + buildInputs = [ coverage mock ]; + propagatedBuildInputs = [ + robot-detection django_extensions rjsmin cssmin django-mailman3 + django-haystack lockfile networkx dateutil defusedxml + django-paintstore djangorestframework django django-q + django_compressor beautifulsoup4 six psycopg2 whoosh + ]; + + 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 ]; + }; +} |