nixpkgs/pkgs/servers/mail/mailman/postorius.nix

29 lines
801 B
Nix
Raw Normal View History

2019-08-26 17:41:02 +02: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";
};
buildInputs = [ beautifulsoup4 vcrpy mock ];
propagatedBuildInputs = [ django-mailman3 ];
2019-08-26 22:51:53 +02:00
checkPhase = ''
cd $NIX_BUILD_TOP/$sourceRoot
PYTHONPATH=.:$PYTHONPATH python example_project/manage.py test --settings=test_settings postorius
'';
2019-08-26 17:41:02 +02: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 22:51:33 +02:00
maintainers = with stdenv.lib.maintainers; [ globin peti ];
2019-08-26 17:41:02 +02:00
};
}