2019-08-26 15:41:02 +00:00
|
|
|
{ stdenv, buildPythonPackage, fetchPypi, beautifulsoup4, vcrpy, mock
|
|
|
|
, django-mailman3, mailmanclient
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "postorius";
|
|
|
|
version = "1.2.4";
|
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
|
|
|
sha256 = "1722lnscxfl8wdigf5d80d1qmd5gblr439wa989jxlww0wkjg9fl";
|
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [ django-mailman3 ];
|
2020-01-17 02:02:51 +00:00
|
|
|
checkInputs = [ beautifulsoup4 vcrpy mock ];
|
2019-08-26 15:41:02 +00:00
|
|
|
|
2019-08-26 20:51:53 +00:00
|
|
|
checkPhase = ''
|
|
|
|
cd $NIX_BUILD_TOP/$sourceRoot
|
|
|
|
PYTHONPATH=.:$PYTHONPATH python example_project/manage.py test --settings=test_settings postorius
|
|
|
|
'';
|
2019-08-26 15:41:02 +00:00
|
|
|
|
|
|
|
meta = {
|
|
|
|
homepage = https://www.gnu.org/software/mailman/;
|
|
|
|
description = "Web-based user interface for managing GNU Mailman";
|
|
|
|
license = stdenv.lib.licenses.gpl3;
|
2019-08-26 20:51:33 +00:00
|
|
|
maintainers = with stdenv.lib.maintainers; [ globin peti ];
|
2019-08-26 15:41:02 +00:00
|
|
|
};
|
|
|
|
}
|