[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug#28726] [PATCH 3/5] gnu: django: Fix building python2-django-mailman
From: |
Christopher Baines |
Subject: |
[bug#28726] [PATCH 3/5] gnu: django: Fix building python2-django-mailman3. |
Date: |
Fri, 6 Oct 2017 21:27:00 +0100 |
The python-django-mailman3 build is still broken, as I don't think this
package is compatible with python3 yet. With this patch, the tests fail due to
the lack of urllib2 (which is just urllib in python3).
* gnu/packages/django.scm (python-django-mailman3)[arguments]: Modify the
phases to run the tests using django-admin.
---
gnu/packages/mail.scm | 11 +++++++++++
1 file changed, 11 insertions(+)
diff --git a/gnu/packages/mail.scm b/gnu/packages/mail.scm
index cc3977e2c..62bcfef1a 100644
--- a/gnu/packages/mail.scm
+++ b/gnu/packages/mail.scm
@@ -2091,6 +2091,17 @@ installation on systems where resources are limited.
Its features include:
(base32
"1adxyh8knw9knjlh73xq0jpn5adml0ck4alsv0swakm95wfyx46z"))))
(build-system python-build-system)
+ (arguments
+ '(#:phases
+ (modify-phases %standard-phases
+ (replace 'check
+ (lambda _
+ (zero?
+ (system*
+ "django-admin"
+ "test"
+ "--settings=django_mailman3.tests.settings_test"
+ "django_mailman3")))))))
(inputs
`(("python-django" ,python-django)))
(propagated-inputs
--
2.14.2
[bug#28726] [PATCH 1/5] gnu: django: Fix the build for python-django-gravatar2., Cyril Roelandt, 2017/10/07