me
/
guix
Archived
1
0
Fork 0

gnu: python-jsonschema: Fix test suite.

* gnu/packages/python-xyz.scm (python-jsonschema)[arguments]: Adjust
custom 'check phase to honor #:tests and to set the
JSON_SCHEMA_TEST_SUTE environment variable.
master
Efraim Flashner 2021-08-22 13:55:34 +03:00
parent 0e55c4902b
commit 5987855f21
No known key found for this signature in database
GPG Key ID: 41AAE7DCCA3D8351
1 changed files with 4 additions and 2 deletions

View File

@ -3334,8 +3334,10 @@ compare, diff, and patch JSON and JSON-like structures in Python.")
'(#:phases
(modify-phases %standard-phases
(replace 'check
(lambda* (#:key inputs outputs #:allow-other-keys)
(invoke "trial" "jsonschema"))))))
(lambda* (#:key inputs outputs tests? #:allow-other-keys)
(when tests?
(setenv "JSON_SCHEMA_TEST_SUITE" "json")
(invoke "trial" "jsonschema")))))))
(native-inputs
`(("python-setuptools_scm" ,python-setuptools-scm)
("python-twisted" ,python-twisted)))