mailman: add django_mailman3 testing

This commit is contained in:
Robin Gloster 2019-08-26 22:54:10 +02:00
parent 6bff4c107e
commit 582bb94624
No known key found for this signature in database
GPG Key ID: D5C458DF6DD97EDF

View File

@ -1,5 +1,5 @@
{ stdenv, buildPythonPackage, fetchPypi, django-gravatar2, django_compressor
, django-allauth, mailmanclient
, django-allauth, mailmanclient, django, mock
}:
buildPythonPackage rec {
@ -14,8 +14,12 @@ buildPythonPackage rec {
propagatedBuildInputs = [
django-gravatar2 django_compressor django-allauth mailmanclient
];
checkInputs = [ django mock ];
doCheck = false;
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";