summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRicardo Wurmus <rekado@elephly.net>2025-01-12 18:26:18 +0100
committerRicardo Wurmus <rekado@elephly.net>2025-01-20 21:37:46 +0100
commitce87b1333b8abeca95da0828038a9c7d6aee0860 (patch)
treec88fefffae55d6b83afb485e5a9607eb4f33d444
parent5c2032eedf5c1e7b2c30c2b1e50df91e9fa7f1b7 (diff)
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
-rw-r--r--gnu/packages/django.scm17
1 files changed, 12 insertions, 5 deletions
diff --git a/gnu/packages/django.scm b/gnu/packages/django.scm
index 3bb0847f84..94a86e02dc 100644
--- a/gnu/packages/django.scm
+++ b/gnu/packages/django.scm
@@ -998,29 +998,36 @@ support, and optional data-URI image and font embedding.")
(define-public python-django-redis
(package
(name "python-django-redis")
- (version "4.12.1")
+ (version "5.4.0")
(source (origin
(method url-fetch)
(uri (pypi-uri "django-redis" version))
(sha256
(base32
- "0qvsm8yjchl0d3i7g20wba6px9lb5gv8kp3fcnr6hr0y0b3qjr9h"))))
+ "0hlch69b4v1fc29xpcjhk50cgbdn78v2qzbhkfzsizmh6jman0ka"))))
(build-system pyproject-build-system)
(arguments
(list
+ #:test-flags
+ ;; These fail with: No module named 'test_client'
+ '(list "-k" "not test_custom_key_function and not delete")
#:phases
'(modify-phases %standard-phases
- (replace 'check
+ (add-before 'check 'start-redis
(lambda* (#:key tests? #:allow-other-keys)
(when tests?
(invoke "redis-server" "--daemonize" "yes")
- (with-directory-excursion "tests"
- (invoke "python" "runtests.py"))))))))
+ (setenv "PYTHONPATH" ".")
+ (setenv "DJANGO_SETTINGS_MODULE" "tests.settings.sqlite")))))))
(native-inputs
(list python-fakeredis
python-hiredis
python-mock
python-msgpack
+ python-pytest
+ python-pytest-cov
+ python-pytest-django
+ python-pytest-mock
python-setuptools
python-wheel
redis))