gnu: python-pymediainfo: Simplify check phase.
* gnu/packages/python-xyz.scm (python-pymediainfo)[arguments]: Use ADD-INSTALLED-PYTHONPATH instead of manipulating PYTHONPATH directly.
This commit is contained in:
parent
4b8bc321e1
commit
0525a3de76
1 changed files with 4 additions and 6 deletions
|
@ -940,13 +940,11 @@ to CommonMark.")
|
||||||
(search-input-file %build-inputs
|
(search-input-file %build-inputs
|
||||||
"/lib/libmediainfo.so.0")))))
|
"/lib/libmediainfo.so.0")))))
|
||||||
(replace 'check
|
(replace 'check
|
||||||
(lambda* (#:key tests? #:allow-other-keys)
|
(lambda* (#:key tests? inputs outputs #:allow-other-keys)
|
||||||
(when tests?
|
(when tests?
|
||||||
;; Extend PYTHONPATH so the built package will be found.
|
(add-installed-pythonpath inputs outputs)
|
||||||
(setenv "PYTHONPATH"
|
;; Skip the only failing test "test_parse_url" because it tries
|
||||||
(string-append (getcwd) "/build/lib:"
|
;; to access the internet.
|
||||||
(getenv "PYTHONPATH")))
|
|
||||||
;; Skip the only failing test "test_parse_url"
|
|
||||||
(invoke "pytest" "-vv" "-k" "not test_parse_url")))))))
|
(invoke "pytest" "-vv" "-k" "not test_parse_url")))))))
|
||||||
(home-page
|
(home-page
|
||||||
"https://github.com/sbraz/pymediainfo")
|
"https://github.com/sbraz/pymediainfo")
|
||||||
|
|
Reference in a new issue