mirror of
https://codeberg.org/guix/guix.git
synced 2025-10-02 02:15:12 +00:00
gnu: python-django-simple-math-captcha: Update to 2.0.0.
* gnu/packages/django.scm (python-django-simple-math-captcha): Update to 2.0.0. [build-system]: Use pyproject-build-system. [arguments]: Add phase 'compatibility; run tests conditionally. [native-inputs]: Add python-setuptools and python-wheel. Change-Id: I93a7e5f351a8d15941a6c29cca72708c81f677a3
This commit is contained in:
parent
bd5f42dc03
commit
5c2032eedf
1 changed files with 18 additions and 18 deletions
|
@ -313,34 +313,34 @@ that are useful for particular countries or cultures.")
|
||||||
(define-public python-django-simple-math-captcha
|
(define-public python-django-simple-math-captcha
|
||||||
(package
|
(package
|
||||||
(name "python-django-simple-math-captcha")
|
(name "python-django-simple-math-captcha")
|
||||||
(version "1.0.9")
|
(version "2.0.0")
|
||||||
(home-page "https://github.com/alsoicode/django-simple-math-captcha")
|
(home-page "https://github.com/alsoicode/django-simple-math-captcha")
|
||||||
(source (origin
|
(source (origin
|
||||||
(method git-fetch)
|
(method git-fetch)
|
||||||
(uri (git-reference
|
(uri (git-reference
|
||||||
(url home-page)
|
(url home-page)
|
||||||
(commit (string-append "v" version))))
|
(commit version)))
|
||||||
(file-name (git-file-name name version))
|
(file-name (git-file-name name version))
|
||||||
(sha256
|
(sha256
|
||||||
(base32
|
(base32
|
||||||
"0fhy9k8haqa1296v0qpg1b5w7y3pyw9qi9z9laj5ijry1gk35qaw"))))
|
"1pqriqvg1bfx36p8hxzh47zl5qk911vgf3xaxfvhkjyi611rbxzy"))))
|
||||||
(build-system python-build-system)
|
(build-system pyproject-build-system)
|
||||||
(arguments
|
(arguments
|
||||||
'(#:phases (modify-phases %standard-phases
|
(list
|
||||||
(add-after 'unpack 'patch-six-imports
|
#:phases
|
||||||
(lambda _
|
'(modify-phases %standard-phases
|
||||||
;; Django no longer bundles six, adjust the imports
|
(add-after 'unpack 'compatibility
|
||||||
;; accordingly. The six dependency can likely be
|
(lambda _
|
||||||
;; removed in the next version.
|
(substitute* "test_simplemathcaptcha/form_tests.py"
|
||||||
(substitute* (find-files "." "\\.py$")
|
(("label for=\"id_captcha_0\"") "label"))
|
||||||
(("from django\\.utils import six")
|
(substitute* "simplemathcaptcha/widgets.py"
|
||||||
"import six"))
|
(("ugettext_lazy") "gettext_lazy"))))
|
||||||
#t))
|
(replace 'check
|
||||||
(replace 'check
|
(lambda* (#:key tests? #:allow-other-keys)
|
||||||
(lambda _
|
(when tests?
|
||||||
(invoke "python" "runtests.py"))))))
|
(invoke "python" "runtests.py")))))))
|
||||||
(native-inputs
|
(native-inputs
|
||||||
(list python-mock))
|
(list python-mock python-setuptools python-wheel))
|
||||||
(propagated-inputs
|
(propagated-inputs
|
||||||
(list python-django python-six))
|
(list python-django python-six))
|
||||||
(synopsis "Easy-to-use math field/widget captcha for Django forms")
|
(synopsis "Easy-to-use math field/widget captcha for Django forms")
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue