1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-21 05:25:38 +00:00
nixpkgs/pkgs/servers/mail/mailman/postorius.nix

29 lines
801 B
Nix
Raw Normal View History

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