rekado pushed a commit to branch master
in repository guix.

commit eb2db374ba35072b32d295b3367fa94ba3124219
Author: Ricardo Wurmus <[email protected]>
AuthorDate: Sun Jan 12 16:11:11 2025 +0100

    gnu: python-django-rq: Use pyproject-build-system.
    
    * gnu/packages/django.scm (python-django-rq)[build-system]: Use
    pyproject-build-system.
    [arguments]: Run tests conditionally.
    [native-inputs]: Add python-setuptools, python-wheel, and tzdata-for-tests.
    
    Change-Id: Ibe8ca4d8fcd11029be6ab36de7b4826f60f97fd6
---
 gnu/packages/django.scm | 26 +++++++++++++++++---------
 1 file changed, 17 insertions(+), 9 deletions(-)

diff --git a/gnu/packages/django.scm b/gnu/packages/django.scm
index fdbbb30e8b..0e9578cd44 100644
--- a/gnu/packages/django.scm
+++ b/gnu/packages/django.scm
@@ -1042,18 +1042,26 @@ support, and optional data-URI image and font 
embedding.")
               (sha256
                (base32
                 "0aw0fi0lg80qgdp9fhjbnlhvfh2p09rgy1nj6hxpyhi37kihni2h"))))
-    (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")
-             (invoke "django-admin" "test" "django_rq"
-                     "--settings=django_rq.tests.settings"
-                     "--pythonpath=."))))))
+           (lambda* (#:key tests? #:allow-other-keys)
+             (when tests?
+               (invoke "redis-server" "--daemonize" "yes")
+               (invoke "django-admin" "test" "django_rq"
+                       "--settings=django_rq.tests.settings"
+                       "--pythonpath=.")))))))
     (native-inputs
-     (list python-django-redis python-mock python-rq-scheduler redis))
+     (list python-django-redis
+           python-mock
+           python-rq-scheduler
+           python-setuptools
+           python-wheel
+           redis
+           tzdata-for-tests))
     (propagated-inputs
      (list python-django python-rq))
     (home-page "https://github.com/ui/django-rq";)

Reply via email to