aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicolas Graves <ngraves@ngraves.fr>2025-04-04 21:17:07 +0200
committerAndreas Enge <andreas@enge.fr>2025-04-16 11:46:29 +0200
commit01c5ceeb46ad1955777b8de54ec9db6947fcea8f (patch)
tree9b54ae8ae559658795ee5f9ef1c4bea2308a7453
parentc4bc6cf49f0b77f5ca2e97d8fa00b61cd80c1dd4 (diff)
downloadguix-01c5ceeb46ad1955777b8de54ec9db6947fcea8f.tar.gz
guix-01c5ceeb46ad1955777b8de54ec9db6947fcea8f.zip
gnu: python-django-rq: Update to 3.0.0.
* gnu/packages/django.scm (python-django-rq): Update to 3.0.0. [arguments]{test-flags}: Ignore failing tests. {phases}: Replace 'check phase replacement by a simpler 'pre-check configuration phase. [native-inputs]: Add python-pytest, python-pytest-django. [propagated-inputs]: Add python-redis, python-pyaml. Signed-off-by: Sharlatan Hellseher <sharlatanus@gmail.com>
-rw-r--r--gnu/packages/django.scm28
1 files changed, 15 insertions, 13 deletions
diff --git a/gnu/packages/django.scm b/gnu/packages/django.scm
index cb9df0d2df..44d47b39ab 100644
--- a/gnu/packages/django.scm
+++ b/gnu/packages/django.scm
@@ -1055,39 +1055,41 @@ support, and optional data-URI image and font embedding.")
(define-public python-django-rq
(package
(name "python-django-rq")
- (version "2.7.0")
+ (version "3.0.0")
(source (origin
(method url-fetch)
(uri (pypi-uri "django-rq" version))
(sha256
(base32
- "0aw0fi0lg80qgdp9fhjbnlhvfh2p09rgy1nj6hxpyhi37kihni2h"))))
+ "1b371w4cdjlz83i2sg4gpx0z3svl3bfrn6zfy661374hv62xpnkv"))))
(build-system pyproject-build-system)
(arguments
(list
+ #:test-flags
+ #~(list "-k" "not test_scheduled_jobs and not test_started_jobs")
#:phases
- '(modify-phases %standard-phases
- (replace 'check
- (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=.")))))))
+ #~(modify-phases %standard-phases
+ (add-before 'check 'pre-check
+ (lambda* (#:key tests? #:allow-other-keys)
+ (when tests?
+ (invoke "redis-server" "--daemonize" "yes")
+ (setenv "DJANGO_SETTINGS_MODULE" "django_rq.tests.settings")
+ (setenv "PYTHONPATH" (getcwd))))))))
(native-inputs
(list python-django-redis
- python-mock
+ python-pytest
+ python-pytest-django
python-rq-scheduler
python-setuptools
python-wheel
redis
tzdata-for-tests))
(propagated-inputs
- (list python-django python-rq))
+ (list python-django python-redis python-rq python-pyaml))
(home-page "https://github.com/ui/django-rq")
(synopsis "Django integration with RQ")
(description
- "Django integration with RQ, a Redis based Python queuing library.
+ "Django integration with RQ, a Redis based Python queuing library.
Django-RQ is a simple app that allows you to configure your queues in django's
settings.py and easily use them in your project.")
(license license:expat)))