mirror of
https://codeberg.org/guix/guix.git
synced 2025-10-01 18:05:17 +00:00
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>
This commit is contained in:
parent
2135ac63e1
commit
bdfc3a0bcf
1 changed files with 6 additions and 3 deletions
|
@ -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")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue