From 582bb946242dd61a2500dcc9f8114a616fe9933f Mon Sep 17 00:00:00 2001 From: Robin Gloster Date: Mon, 26 Aug 2019 22:54:10 +0200 Subject: [PATCH] mailman: add django_mailman3 testing --- .../python-modules/django-mailman3/default.nix | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/pkgs/development/python-modules/django-mailman3/default.nix b/pkgs/development/python-modules/django-mailman3/default.nix index 2dd3801dad5e..91cea9b00598 100644 --- a/pkgs/development/python-modules/django-mailman3/default.nix +++ b/pkgs/development/python-modules/django-mailman3/default.nix @@ -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";