Merge pull request #67525 from peti/t/postorious
mailman: add the Postorious web UI
This commit is contained in:
30
pkgs/development/python-modules/django-mailman3/default.nix
Normal file
30
pkgs/development/python-modules/django-mailman3/default.nix
Normal file
@@ -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 ];
|
||||
};
|
||||
}
|
||||
21
pkgs/development/python-modules/mailmanclient/default.nix
Normal file
21
pkgs/development/python-modules/mailmanclient/default.nix
Normal file
@@ -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 ];
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user