gnu: python-simpervisor: Enable tests.
* gnu/packages/python-xyz.scm (python-simpervisor) [arguments] <#:test-flags>: Parallelise tests. <#:phases>: Use standard 'check phase. [native-inputs]: Add python-psutil and python-pytest-xdist. Change-Id: Ica52d672470309593b1d01c5cc4713f080c2c1b3
This commit is contained in:
parent
8cab6bac1c
commit
2f1ed825af
1 changed files with 5 additions and 10 deletions
|
@ -31161,20 +31161,15 @@ (define-public python-simpervisor
|
|||
(base32 "0drvqxbr6fpydb4d7z5dhn97d578gf39sd8cawyl6ksf1f4y8yzg"))))
|
||||
(build-system pyproject-build-system)
|
||||
(arguments
|
||||
`(#:tests? #f ; Test suite can't find aiohttp.
|
||||
#:phases
|
||||
(modify-phases %standard-phases
|
||||
(replace 'check
|
||||
(lambda* (#:key inputs outputs tests? #:allow-other-keys)
|
||||
(when tests?
|
||||
(add-installed-pythonpath inputs outputs)
|
||||
(invoke "pytest" "--maxfail" "3" "--verbose"))
|
||||
#t)))))
|
||||
(list
|
||||
#:test-flags '(list "-n" (number->string (parallel-job-count)))))
|
||||
(native-inputs
|
||||
(list python-aiohttp
|
||||
python-hatchling
|
||||
python-psutil
|
||||
python-pytest
|
||||
python-pytest-asyncio))
|
||||
python-pytest-asyncio
|
||||
python-pytest-xdist))
|
||||
(home-page "https://github.com/yuvipanda/simpervisor")
|
||||
(synopsis "Simple async process supervisor")
|
||||
(description
|
||||
|
|
Loading…
Reference in a new issue