[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug#43354] [PATCH 05/55] gnu: python-django-simple-math-captcha: Update
From: |
Marius Bakke |
Subject: |
[bug#43354] [PATCH 05/55] gnu: python-django-simple-math-captcha: Update to 1.0.9. |
Date: |
Sat, 12 Sep 2020 16:28:21 +0200 |
* gnu/packages/django.scm (python-django-simple-math-captcha): Update to 1.0.9.
[source]: Change to GIT-FETCH.
[arguments]: Remove #:tests?. Add phases to patch imports and run tests.
[native-inputs]: Add PYTHON-MOCK.
[propagated-inputs]: Add PYTHON-SIX.
---
gnu/packages/django.scm | 34 +++++++++++++++++++++++++---------
1 file changed, 25 insertions(+), 9 deletions(-)
diff --git a/gnu/packages/django.scm b/gnu/packages/django.scm
index 30716dd286..e3e99edd78 100644
--- a/gnu/packages/django.scm
+++ b/gnu/packages/django.scm
@@ -200,21 +200,37 @@ commands, additional database fields and admin
extensions.")
(define-public python-django-simple-math-captcha
(package
(name "python-django-simple-math-captcha")
- (version "1.0.7")
+ (version "1.0.9")
+ (home-page "https://github.com/alsoicode/django-simple-math-captcha")
(source (origin
- (method url-fetch)
- (uri (pypi-uri "django-simple-math-captcha" version))
+ (method git-fetch)
+ (uri (git-reference
+ (url home-page)
+ (commit (string-append "v" version))))
+ (file-name (git-file-name name version))
(sha256
(base32
- "0906hms6y6znjhpd0g4wmzv9vcla4brkdpsm4zha9zdj8g5vq2hd"))))
+ "0fhy9k8haqa1296v0qpg1b5w7y3pyw9qi9z9laj5ijry1gk35qaw"))))
(build-system python-build-system)
(arguments
- ;; FIXME: Upstream uses a 'runtests.py' script that is not
- ;; present in the pypi tarball.
- '(#:tests? #f))
+ '(#:phases (modify-phases %standard-phases
+ (add-after 'unpack 'patch-six-imports
+ (lambda _
+ ;; Django no longer bundles six, adjust the imports
+ ;; accordingly. The six dependency can likely be
+ ;; removed in the next version.
+ (substitute* (find-files "." "\\.py$")
+ (("from django\\.utils import six")
+ "import six"))
+ #t))
+ (replace 'check
+ (lambda _
+ (invoke "python" "runtests.py"))))))
+ (native-inputs
+ `(("python-mock" ,python-mock)))
(propagated-inputs
- `(("python-django" ,python-django)))
- (home-page "https://github.com/alsoicode/django-simple-math-captcha")
+ `(("python-django" ,python-django)
+ ("python-six" ,python-six)))
(synopsis "Easy-to-use math field/widget captcha for Django forms")
(description
"A multi-value-field that presents a human answerable question,
--
2.28.0
- [bug#43354] [PATCH 00/55] Django upgrade, Marius Bakke, 2020/09/12
- [bug#43354] [PATCH 01/55] gnu: Add python-asgiref., Marius Bakke, 2020/09/12
- [bug#43354] [PATCH 03/55] gnu: python-django: Propagate python-sqlparse., Marius Bakke, 2020/09/12
- [bug#43354] [PATCH 04/55] gnu: python-pytest-django: Update to 3.9.0., Marius Bakke, 2020/09/12
- [bug#43354] [PATCH 02/55] gnu: python-django: Update to 3.1.1., Marius Bakke, 2020/09/12
- [bug#43354] [PATCH 06/55] gnu: python-django-classy-tags: Update to 2.0.0., Marius Bakke, 2020/09/12
- [bug#43354] [PATCH 05/55] gnu: python-django-simple-math-captcha: Update to 1.0.9.,
Marius Bakke <=
- [bug#43354] [PATCH 08/55] gnu: python-django-taggit: Update to 1.3.0., Marius Bakke, 2020/09/12
- [bug#43354] [PATCH 07/55] gnu: python-django-extensions: Update to 3.0.6., Marius Bakke, 2020/09/12
- [bug#43354] [PATCH 09/55] gnu: python-django-crispy-forms: Update to 1.9.2., Marius Bakke, 2020/09/12
- [bug#43354] [PATCH 12/55] gnu: python-django-allauth: Update to 0.42.0., Marius Bakke, 2020/09/12
- [bug#43354] [PATCH 10/55] gnu: python-djangorestframework: Update to 3.11.1., Marius Bakke, 2020/09/12
- [bug#43354] [PATCH 13/55] gnu: Add python-css-html-js-minify., Marius Bakke, 2020/09/12
- [bug#43354] [PATCH 15/55] gnu: python-django-jinja: Update to 2.6.0., Marius Bakke, 2020/09/12
- [bug#43354] [PATCH 11/55] gnu: python-django-filter: Update to 2.3.0., Marius Bakke, 2020/09/12
- [bug#43354] [PATCH 14/55] gnu: python-django-pipeline: Update to 2.0.5., Marius Bakke, 2020/09/12
- [bug#43354] [PATCH 16/55] gnu: python-django-debug-toolbar: Update to 2.2., Marius Bakke, 2020/09/12