summaryrefslogtreecommitdiff
path: root/gnu/packages/django.scm
diff options
context:
space:
mode:
authorRicardo Wurmus <[email protected]>2025-01-12 16:09:03 +0100
committerRicardo Wurmus <[email protected]>2025-01-20 21:37:45 +0100
commitc44b5f86011150234475e437ffcc380c78072fbb (patch)
tree77cfb1c1de8bc9f15dfdca0e8ca1917f9a066a5e /gnu/packages/django.scm
parente103044a731e3c98df61feda6c552702a00c9aa4 (diff)
gnu: python-django-redis: Use pyproject-build-system.
* gnu/packages/django.scm (python-django-redis)[build-system]: Use pyproject-build-system. [arguments]: Run tests conditionally. [native-inputs]: Add python-setuptools and python-wheel. [description]: Complete sentence. Change-Id: I8bb6416529068332046133c71159d02a50932ccb
Diffstat (limited to 'gnu/packages/django.scm')
-rw-r--r--gnu/packages/django.scm25
1 files changed, 16 insertions, 9 deletions
diff --git a/gnu/packages/django.scm b/gnu/packages/django.scm
index ee021763f4..fdbbb30e8b 100644
--- a/gnu/packages/django.scm
+++ b/gnu/packages/django.scm
@@ -1005,24 +1005,31 @@ support, and optional data-URI image and font embedding.")
(sha256
(base32
"0qvsm8yjchl0d3i7g20wba6px9lb5gv8kp3fcnr6hr0y0b3qjr9h"))))
- (build-system python-build-system)
+ (build-system pyproject-build-system)
(arguments
- `(#:phases
- (modify-phases %standard-phases
+ (list
+ #:phases
+ '(modify-phases %standard-phases
(replace 'check
- (lambda _
- (invoke "redis-server" "--daemonize" "yes")
- (with-directory-excursion "tests"
- (invoke "python" "runtests.py")))))))
+ (lambda* (#:key tests? #:allow-other-keys)
+ (when tests?
+ (invoke "redis-server" "--daemonize" "yes")
+ (with-directory-excursion "tests"
+ (invoke "python" "runtests.py"))))))))
(native-inputs
- (list python-fakeredis python-hiredis python-mock python-msgpack
+ (list python-fakeredis
+ python-hiredis
+ python-mock
+ python-msgpack
+ python-setuptools
+ python-wheel
redis))
(propagated-inputs
(list python-django python-redis))
(home-page "https://github.com/niwibe/django-redis")
(synopsis "Full featured redis cache backend for Django")
(description
- "Full featured redis cache backend for Django.")
+ "This package provides a full featured Redis cache backend for Django.")
(license license:bsd-3)))
(define-public python-django-rq