mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2025-01-26 12:39:36 -05:00
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 @@ (define-public python-pymediainfo
|
|||
(search-input-file %build-inputs
|
||||
"/lib/libmediainfo.so.0")))))
|
||||
(replace 'check
|
||||
(lambda* (#:key tests? #:allow-other-keys)
|
||||
(lambda* (#:key tests? inputs outputs #:allow-other-keys)
|
||||
(when tests?
|
||||
;; Extend PYTHONPATH so the built package will be found.
|
||||
(setenv "PYTHONPATH"
|
||||
(string-append (getcwd) "/build/lib:"
|
||||
(getenv "PYTHONPATH")))
|
||||
;; Skip the only failing test "test_parse_url"
|
||||
(add-installed-pythonpath inputs outputs)
|
||||
;; Skip the only failing test "test_parse_url" because it tries
|
||||
;; to access the internet.
|
||||
(invoke "pytest" "-vv" "-k" "not test_parse_url")))))))
|
||||
(home-page
|
||||
"https://github.com/sbraz/pymediainfo")
|
||||
|
|
Loading…
Reference in a new issue