From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:36823) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1e1E3h-00010q-9C for guix-patches@gnu.org; Sun, 08 Oct 2017 12:04:06 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1e1E3e-00077M-5S for guix-patches@gnu.org; Sun, 08 Oct 2017 12:04:05 -0400 Received: from debbugs.gnu.org ([208.118.235.43]:47883) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1e1E3e-00077H-1n for guix-patches@gnu.org; Sun, 08 Oct 2017 12:04:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1e1E3d-0005mE-OK for guix-patches@gnu.org; Sun, 08 Oct 2017 12:04:01 -0400 Subject: [bug#28726] [PATCH 2/6] gnu: django: Fix building python-django-allauth. Resent-Message-ID: From: Christopher Baines Date: Sun, 8 Oct 2017 17:03:48 +0100 Message-Id: <20171008160352.10325-2-mail@cbaines.net> In-Reply-To: <20171008160352.10325-1-mail@cbaines.net> References: <20171008160352.10325-1-mail@cbaines.net> List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+kyle=kyleam.com@gnu.org Sender: "Guix-patches" To: 28726@debbugs.gnu.org * gnu/packages/django.scm (python-django-allauth)[arguments]: Modify the standard phases to skip a test, and run the tests using django-admin with the settings configured. --- gnu/packages/django.scm | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/gnu/packages/django.scm b/gnu/packages/django.scm index fb8663d3f..93068300d 100644 --- a/gnu/packages/django.scm +++ b/gnu/packages/django.scm @@ -204,6 +204,26 @@ them do this.") (base32 "1fslqc5qqb0b66yscvkyjwfv8cnbfx5nlkpnwimyb3pf1nc1w7r3")))) (build-system python-build-system) + (arguments + '(#:phases + (modify-phases %standard-phases + ;; TODO: Tagging the tests requiring the web could be done upstream. + (add-before 'check 'skip-test-requiring-network-access + (lambda _ + (substitute* "allauth/socialaccount/providers/openid/tests.py" + (("def test_login") + "from django.test import tag + @tag('requires-web') + def test_login")))) + (replace 'check + (lambda _ + (setenv "DJANGO_SETTINGS_MODULE" "test_settings") + (zero? (system* + "django-admin" + "test" + "allauth" + "--verbosity=2" + "--exclude-tag=requires-web"))))))) (propagated-inputs `(("python-openid" ,python-openid) ("python-requests" ,python-requests) -- 2.14.2