Merge pull request #67525 from peti/t/postorious
mailman: add the Postorious web UI
This commit is contained in:
commit
630e25ba5c
|
@ -0,0 +1,30 @@
|
|||
{ stdenv, buildPythonPackage, fetchPypi, django-gravatar2, django_compressor
|
||||
, django-allauth, mailmanclient, django, mock
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "django-mailman3";
|
||||
version = "1.2.0";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "0v6c1jhcc212wc2xa314irfcchl05r7nysrcy63dcaan958kmnnx";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [
|
||||
django-gravatar2 django_compressor django-allauth mailmanclient
|
||||
];
|
||||
checkInputs = [ django mock ];
|
||||
|
||||
checkPhase = ''
|
||||
cd $NIX_BUILD_TOP/$sourceRoot
|
||||
PYTHONPATH=.:$PYTHONPATH django-admin.py test --settings=django_mailman3.tests.settings_test
|
||||
'';
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
description = "Django library for Mailman UIs";
|
||||
homepage = https://gitlab.com/mailman/django-mailman3;
|
||||
license = licenses.gpl3;
|
||||
maintainers = with maintainers; [ globin peti ];
|
||||
};
|
||||
}
|
|
@ -0,0 +1,21 @@
|
|||
{ stdenv, buildPythonPackage, fetchPypi, six, httplib2 }:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "mailmanclient";
|
||||
version = "3.2.2";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "0xsrzdrsmfhnxv68zwm1g6awk7in08k6yhkyd27ipn0mq1wjm5jd";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [ six httplib2 ];
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
homepage = "http://www.gnu.org/software/mailman/";
|
||||
description = "REST client for driving Mailman 3";
|
||||
license = licenses.lgpl3;
|
||||
platforms = platforms.linux;
|
||||
maintainers = with maintainers; [ peti globin ];
|
||||
};
|
||||
}
|
|
@ -0,0 +1,28 @@
|
|||
{ 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 ];
|
||||
|
||||
checkPhase = ''
|
||||
cd $NIX_BUILD_TOP/$sourceRoot
|
||||
PYTHONPATH=.:$PYTHONPATH python example_project/manage.py test --settings=test_settings postorius
|
||||
'';
|
||||
|
||||
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; [ globin peti ];
|
||||
};
|
||||
}
|
|
@ -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 { };
|
||||
|
|
Loading…
Reference in New Issue