~ruther/guix-local

eb2db374ba35072b32d295b3367fa94ba3124219 — Ricardo Wurmus 1 year, 3 months ago c44b5f86
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
1 files changed, 17 insertions(+), 9 deletions(-)

M gnu/packages/django.scm
M gnu/packages/django.scm => gnu/packages/django.scm +17 -9
@@ 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")