mailman: add the Postorious web UI

This commit is contained in:
Peter Simons 2019-08-26 17:41:02 +02:00
parent a9b4e7592f
commit 22af3829a4
5 changed files with 64 additions and 1 deletions

View File

@ -0,0 +1,19 @@
{ stdenv, buildPythonPackage, fetchPypi, django-gravatar2, django_compressor
, django-allauth, mailmanclient
}:
buildPythonPackage rec {
pname = "django-mailman3";
version = "1.2.0";
src = fetchPypi {
inherit pname version;
sha256 = "0v6c1jhcc212wc2xa314irfcchl05r7nysrcy63dcaan958kmnnx";
};
propagatedBuildInputs = [
django-gravatar2 django_compressor django-allauth mailmanclient
];
doCheck = false;
}

View File

@ -0,0 +1,13 @@
{ stdenv, buildPythonPackage, fetchPypi, six, httplib2 }:
buildPythonPackage rec {
pname = "mailmanclient";
version = "3.2.2";
src = fetchPypi {
inherit pname version;
sha256 = "0xsrzdrsmfhnxv68zwm1g6awk7in08k6yhkyd27ipn0mq1wjm5jd";
};
propagatedBuildInputs = [ six httplib2 ];
}

View File

@ -0,0 +1,25 @@
{ stdenv, buildPythonPackage, fetchPypi, beautifulsoup4, vcrpy, mock
, django-mailman3, mailmanclient
}:
buildPythonPackage rec {
pname = "postorius";
version = "1.2.4";
src = fetchPypi {
inherit pname version;
sha256 = "1722lnscxfl8wdigf5d80d1qmd5gblr439wa989jxlww0wkjg9fl";
};
buildInputs = [ beautifulsoup4 vcrpy mock ];
propagatedBuildInputs = [ django-mailman3 ];
doCheck = false;
meta = {
homepage = https://www.gnu.org/software/mailman/;
description = "Web-based user interface for managing GNU Mailman";
license = stdenv.lib.licenses.gpl3;
maintainers = with stdenv.lib.maintainers; [ peti ];
};
}

View File

@ -711,7 +711,9 @@ in {
mail-parser = callPackage ../development/python-modules/mail-parser { };
mailman = disabledIf (!isPy3k) (callPackage ../servers/mail/mailman { });
mailman = disabledIf (!isPy3k) (callPackage ../servers/mail/mailman/core.nix { });
mailmanclient = callPackage ../development/python-modules/mailmanclient { };
manhole = callPackage ../development/python-modules/manhole { };
@ -821,6 +823,8 @@ in {
poetry = callPackage ../development/python-modules/poetry { };
postorius = disabledIf (!isPy3k) (callPackage ../servers/mail/mailman/postorius.nix { });
pplpy = callPackage ../development/python-modules/pplpy { };
pprintpp = callPackage ../development/python-modules/pprintpp { };
@ -2868,6 +2872,8 @@ in {
django-logentry-admin = callPackage ../development/python-modules/django-logentry-admin { };
django-mailman3 = callPackage ../development/python-modules/django-mailman3 { };
django-pglocks = callPackage ../development/python-modules/django-pglocks { };
django-picklefield = callPackage ../development/python-modules/django-picklefield { };