gnu: python-rq-scheduler: Update to 0.14.

* gnu/packages/databases.scm (python-rq-scheduler): Update to 0.14.
[build-system]: Switch to pyproject.
[arguments]{test-flags}: Ignore failing tests.  They fail because of
mcron's requirements to be run with root when -u flag is used.
{phases}: Remove 'check phase replacement.
[native-inputs]: Add python-crontab, python-freezegun, python-pytest,
python-setuptools, python-wheel.  Remove which.

Signed-off-by: Sharlatan Hellseher <sharlatanus@gmail.com>
This commit is contained in:
Nicolas Graves 2025-04-04 21:17:04 +02:00 committed by Andreas Enge
parent 180a69e23a
commit 8021ffb34c
No known key found for this signature in database
GPG key ID: F7D5C9BF765C61E3

View file

@ -4648,7 +4648,7 @@ is designed to have a low barrier to entry.")
(define-public python-rq-scheduler (define-public python-rq-scheduler
(package (package
(name "python-rq-scheduler") (name "python-rq-scheduler")
(version "0.10.0") (version "0.14")
(home-page "https://github.com/rq/rq-scheduler") (home-page "https://github.com/rq/rq-scheduler")
(source (origin (source (origin
(method git-fetch) (method git-fetch)
@ -4658,21 +4658,30 @@ is designed to have a low barrier to entry.")
(file-name (git-file-name name version)) (file-name (git-file-name name version))
(sha256 (sha256
(base32 (base32
"0xg6yazqs5kbr2ayvhvljs1h5vgx5k5dds613fmhswln7gglf9hk")))) "09fh9m2vcl1jndq35xp1x0j8ih009r71qmhn2pkl93fykrqfavyn"))))
(build-system python-build-system) (build-system pyproject-build-system)
(arguments (arguments
'(#:phases (modify-phases %standard-phases (list
(add-before 'check 'start-redis #:test-flags
(lambda _ #~(list "-k" (string-append "not test_cron"
(invoke "redis-server" "--daemonize" "yes"))) " and not test_job_creation_with"
(replace 'check " and not test_job_with_crontab"))
(lambda _ #:phases #~(modify-phases %standard-phases
(substitute* "run_tests.py" (add-before 'check 'start-redis
(("/usr/bin/env") (lambda _
(which "env"))) (invoke "redis-server" "--daemonize" "yes")))
(invoke "./run_tests.py")))))) (add-after 'unpack 'loosen-requirements
(lambda _
(substitute* "setup.py"
(("crontab>=[0-9.]*")
"python-crontab")))))))
(native-inputs (native-inputs
(list redis which)) (list python-crontab
python-freezegun
python-pytest
python-setuptools
python-wheel
redis))
(propagated-inputs (propagated-inputs
(list python-croniter python-rq)) (list python-croniter python-rq))
(synopsis "Job scheduling capabilities for RQ (Redis Queue)") (synopsis "Job scheduling capabilities for RQ (Redis Queue)")