diff options
| author | Jake Forster <jakecameron.forster@gmail.com> | 2025-09-28 12:06:04 +0930 |
|---|---|---|
| committer | Sharlatan Hellseher <sharlatanus@gmail.com> | 2025-09-29 00:25:56 +0100 |
| commit | bdfc3a0bcfedab8a11f2ee67dfd74a8033b83c59 (patch) | |
| tree | ef3fa65f8fe98e29b7101625d7f5263affe9be28 /gnu/packages/python-xyz.scm | |
| parent | 2135ac63e111853b40dbdfab423b7233fda6d474 (diff) | |
gnu: python-huey: Fix tests.
* gnu/packages/python-xyz.scm (python-huey):
[arguments]<#:phases>{pre-check}: Delete.
{check}: Replace.
Change-Id: I801baae9aa6a646bb9df452876a591db7da7a653
Reviewed-by: Nicolas Graves <ngraves@ngraves.fr>
Modified-by: Sharlatan Hellseher <sharlatanus@gmail.com>
Signed-off-by: Sharlatan Hellseher <sharlatanus@gmail.com>
Diffstat (limited to 'gnu/packages/python-xyz.scm')
| -rw-r--r-- | gnu/packages/python-xyz.scm | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm index 1a42aa60f2..ad36ce3071 100644 --- a/gnu/packages/python-xyz.scm +++ b/gnu/packages/python-xyz.scm @@ -1000,9 +1000,12 @@ It also supports IPython/Jupyter.") (substitute* "huey/tests/test_kt_huey.py" (("^has_ktserver = sp.call\\(\\['which', 'ktserver'\\].*$") "has_ktserver = False")))) - (add-before 'check 'pre-check - (lambda _ (spawn "redis-server" '("redis-server"))))))) - (native-inputs (list python-setuptools python-wheel redis tzdata-for-tests)) + (replace 'check + (lambda* (#:key tests? #:allow-other-keys) + (when tests? + (spawn "redis-server" '("redis-server")) + (invoke "python3" "-m" "runtests" "--verbosity" "2"))))))) + (native-inputs (list python-setuptools redis tzdata-for-tests)) (propagated-inputs (list python-redis)) (home-page "https://huey.readthedocs.io") (synopsis "Lightweight task queue for Python") |
