mirror of
https://codeberg.org/guix/guix.git
synced 2025-10-02 02:15:12 +00:00
gnu: python-django-redis: Update to 5.4.0.
* gnu/packages/django.scm (python-django-redis): Update to 5.4.0. [arguments]: Disable a few tests; add phase 'start-redis; remove custom 'check phase. [native-inputs]: Add python-pytest, python-pytest-cov, python-pytest-django, and python-pytest-mock. Change-Id: I7f1d8a02c5a782efe3261ac066eaf28a709c83ae
This commit is contained in:
parent
5c2032eedf
commit
ce87b1333b
1 changed files with 12 additions and 5 deletions
|
@ -998,29 +998,36 @@ support, and optional data-URI image and font embedding.")
|
||||||
(define-public python-django-redis
|
(define-public python-django-redis
|
||||||
(package
|
(package
|
||||||
(name "python-django-redis")
|
(name "python-django-redis")
|
||||||
(version "4.12.1")
|
(version "5.4.0")
|
||||||
(source (origin
|
(source (origin
|
||||||
(method url-fetch)
|
(method url-fetch)
|
||||||
(uri (pypi-uri "django-redis" version))
|
(uri (pypi-uri "django-redis" version))
|
||||||
(sha256
|
(sha256
|
||||||
(base32
|
(base32
|
||||||
"0qvsm8yjchl0d3i7g20wba6px9lb5gv8kp3fcnr6hr0y0b3qjr9h"))))
|
"0hlch69b4v1fc29xpcjhk50cgbdn78v2qzbhkfzsizmh6jman0ka"))))
|
||||||
(build-system pyproject-build-system)
|
(build-system pyproject-build-system)
|
||||||
(arguments
|
(arguments
|
||||||
(list
|
(list
|
||||||
|
#:test-flags
|
||||||
|
;; These fail with: No module named 'test_client'
|
||||||
|
'(list "-k" "not test_custom_key_function and not delete")
|
||||||
#:phases
|
#:phases
|
||||||
'(modify-phases %standard-phases
|
'(modify-phases %standard-phases
|
||||||
(replace 'check
|
(add-before 'check 'start-redis
|
||||||
(lambda* (#:key tests? #:allow-other-keys)
|
(lambda* (#:key tests? #:allow-other-keys)
|
||||||
(when tests?
|
(when tests?
|
||||||
(invoke "redis-server" "--daemonize" "yes")
|
(invoke "redis-server" "--daemonize" "yes")
|
||||||
(with-directory-excursion "tests"
|
(setenv "PYTHONPATH" ".")
|
||||||
(invoke "python" "runtests.py"))))))))
|
(setenv "DJANGO_SETTINGS_MODULE" "tests.settings.sqlite")))))))
|
||||||
(native-inputs
|
(native-inputs
|
||||||
(list python-fakeredis
|
(list python-fakeredis
|
||||||
python-hiredis
|
python-hiredis
|
||||||
python-mock
|
python-mock
|
||||||
python-msgpack
|
python-msgpack
|
||||||
|
python-pytest
|
||||||
|
python-pytest-cov
|
||||||
|
python-pytest-django
|
||||||
|
python-pytest-mock
|
||||||
python-setuptools
|
python-setuptools
|
||||||
python-wheel
|
python-wheel
|
||||||
redis))
|
redis))
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue