mirror of
https://codeberg.org/guix/guix.git
synced 2026-01-25 12:05:19 -06:00
gnu: python-falcon: Fix tests.
* gnu/packages/python-web.scm (python-falcon)[native-inputs]: Add python-orjson. [arguments]: Do not patch test file; respect test-flags in custom 'check phase; provide test-flags to ignore examples and benchmarks. [build-system]: Use pyproject-build-system. Change-Id: Ic173e2d940a2bb9c7f81ea3e70475f8bfff36dfb Signed-off-by: Hilton Chain <hako@ultrarare.space>
This commit is contained in:
parent
dbe1c21122
commit
2c700af42c
1 changed files with 12 additions and 9 deletions
|
|
@ -1176,17 +1176,19 @@ Interchange Format (SARIF)} file format.")
|
|||
(sha256
|
||||
(base32
|
||||
"17k31d8avl63xsr6fzvmkxcsm7gnz5dqpgsz65psm1lpc38c79k3"))))
|
||||
(build-system python-build-system)
|
||||
(build-system pyproject-build-system)
|
||||
(arguments
|
||||
`(#:phases
|
||||
(modify-phases %standard-phases
|
||||
(list
|
||||
#:test-flags
|
||||
'(list "--ignore-glob=examples/*" "--ignore-glob=bench/*" "tests")
|
||||
#:phases
|
||||
'(modify-phases %standard-phases
|
||||
(add-before 'check 'set-HOME
|
||||
(lambda _ (setenv "HOME" "/tmp")))
|
||||
(replace 'check
|
||||
(lambda* (#:key inputs outputs #:allow-other-keys)
|
||||
;; Skip orjson, which requires rust to build.
|
||||
(substitute* "tests/test_media_handlers.py"
|
||||
(("== 'CPython") "!= 'CPython"))
|
||||
(setenv "HOME" "/tmp")
|
||||
(invoke "pytest" "-vv" "tests"))))))
|
||||
(lambda* (#:key tests? test-flags #:allow-other-keys)
|
||||
(when tests?
|
||||
(apply invoke "pytest" "-vv" test-flags)))))))
|
||||
(propagated-inputs
|
||||
(list python-mimeparse))
|
||||
(native-inputs
|
||||
|
|
@ -1197,6 +1199,7 @@ Interchange Format (SARIF)} file format.")
|
|||
python-httpx
|
||||
python-mujson
|
||||
python-msgpack
|
||||
python-orjson
|
||||
python-pecan
|
||||
python-pillow
|
||||
python-pytest
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue