diff options
author | Nicolas Graves <ngraves@ngraves.fr> | 2025-04-04 21:17:04 +0200 |
---|---|---|
committer | Andreas Enge <andreas@enge.fr> | 2025-04-16 11:46:29 +0200 |
commit | 8021ffb34c5003edbbe1461185fa2e244270b71f (patch) | |
tree | 5a66187db4ac600886b2aae31a841e4b13e44f9d | |
parent | 180a69e23af401dc75b750278ab21d9f60df72c5 (diff) | |
download | guix-8021ffb34c5003edbbe1461185fa2e244270b71f.tar.gz guix-8021ffb34c5003edbbe1461185fa2e244270b71f.zip |
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>
-rw-r--r-- | gnu/packages/databases.scm | 37 |
1 files changed, 23 insertions, 14 deletions
diff --git a/gnu/packages/databases.scm b/gnu/packages/databases.scm index 89d919d1d6..3fdee01fc9 100644 --- a/gnu/packages/databases.scm +++ b/gnu/packages/databases.scm @@ -4648,7 +4648,7 @@ is designed to have a low barrier to entry.") (define-public python-rq-scheduler (package (name "python-rq-scheduler") - (version "0.10.0") + (version "0.14") (home-page "https://github.com/rq/rq-scheduler") (source (origin (method git-fetch) @@ -4658,21 +4658,30 @@ is designed to have a low barrier to entry.") (file-name (git-file-name name version)) (sha256 (base32 - "0xg6yazqs5kbr2ayvhvljs1h5vgx5k5dds613fmhswln7gglf9hk")))) - (build-system python-build-system) + "09fh9m2vcl1jndq35xp1x0j8ih009r71qmhn2pkl93fykrqfavyn")))) + (build-system pyproject-build-system) (arguments - '(#:phases (modify-phases %standard-phases - (add-before 'check 'start-redis - (lambda _ - (invoke "redis-server" "--daemonize" "yes"))) - (replace 'check - (lambda _ - (substitute* "run_tests.py" - (("/usr/bin/env") - (which "env"))) - (invoke "./run_tests.py")))))) + (list + #:test-flags + #~(list "-k" (string-append "not test_cron" + " and not test_job_creation_with" + " and not test_job_with_crontab")) + #:phases #~(modify-phases %standard-phases + (add-before 'check 'start-redis + (lambda _ + (invoke "redis-server" "--daemonize" "yes"))) + (add-after 'unpack 'loosen-requirements + (lambda _ + (substitute* "setup.py" + (("crontab>=[0-9.]*") + "python-crontab"))))))) (native-inputs - (list redis which)) + (list python-crontab + python-freezegun + python-pytest + python-setuptools + python-wheel + redis)) (propagated-inputs (list python-croniter python-rq)) (synopsis "Job scheduling capabilities for RQ (Redis Queue)") |