diff options
author | Marius Bakke <mbakke@fastmail.com> | 2017-03-03 16:55:43 +0100 |
---|---|---|
committer | Marius Bakke <mbakke@fastmail.com> | 2017-03-03 16:55:43 +0100 |
commit | 3f98071ac5d8ffa722b2cf9c74c9c38bf413f059 (patch) | |
tree | 494c4af6cfc996d6acd764025bb78f1a1598d5c9 /gnu/packages/django.scm | |
parent | 0a77fdf4b8732598e341a6793503ea4847e0c760 (diff) | |
parent | 2bb12f5a68f6547b3de295c22c2886aaa0415e47 (diff) | |
download | guix-3f98071ac5d8ffa722b2cf9c74c9c38bf413f059.tar.gz |
Merge branch 'python-tests'
Diffstat (limited to 'gnu/packages/django.scm')
-rw-r--r-- | gnu/packages/django.scm | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/gnu/packages/django.scm b/gnu/packages/django.scm index 9a3c66c45e..185fbf8e62 100644 --- a/gnu/packages/django.scm +++ b/gnu/packages/django.scm @@ -106,6 +106,10 @@ to the @dfn{don't repeat yourself} (DRY) principle.") (base32 "0906hms6y6znjhpd0g4wmzv9vcla4brkdpsm4zha9zdj8g5vq2hd")))) (build-system python-build-system) + (arguments + ;; FIXME: Upstream uses a 'runtests.py' script that is not + ;; present in the pypi tarball. + '(#:tests? #f)) (propagated-inputs `(("python-django" ,python-django))) (home-page "https://github.com/alsoicode/django-simple-math-captcha") @@ -131,7 +135,8 @@ with arguments to the field constructor.") "1mmc7zsz3dlhs6sx4sppkj1vgshabi362r1a8b8wpj1qfximpqcb")))) (build-system python-build-system) (arguments - `(#:phases + `(#:tests? #f ; FIXME: How to run tests? + #:phases (modify-phases %standard-phases (add-after 'unpack 'patch-setuppy (lambda _ @@ -163,6 +168,12 @@ useful tools for testing Django applications and projects.") (base32 "0f78hmk8c903zwfzlsiw7ivgag81ymmb5hi73rzxbhnlg2v0l3fx")))) (build-system python-build-system) + (arguments + '(#:phases + (modify-phases %standard-phases + (replace 'check + (lambda _ + (zero? (system* "python" "runtests.py"))))))) (native-inputs `(("python-django" ,python-django) ("python-mock" ,python-mock))) |