mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-11-17 20:27:36 -05:00
gnu: python-pymediainfo: Respect "--without-tests".
* gnu/packages/python-xyz.scm (python-pymediainfo)[arguments]<#:phases>{check}: Respect #:tests?. Don't bother returning #t as it isn't required anymore. Signed-off-by: Mathieu Othacehe <othacehe@gnu.org>
This commit is contained in:
parent
beaa5dff38
commit
3cd509bf66
1 changed files with 9 additions and 8 deletions
|
@ -103,6 +103,7 @@
|
||||||
;;; Copyright © 2021 Raghav Gururajan <rg@raghavgururajan.name>
|
;;; Copyright © 2021 Raghav Gururajan <rg@raghavgururajan.name>
|
||||||
;;; Copyright © 2021 jgart <jgart@dismail.de>
|
;;; Copyright © 2021 jgart <jgart@dismail.de>
|
||||||
;;; Copyright © 2021 Danial Behzadi <dani.behzi@ubuntu.com>
|
;;; Copyright © 2021 Danial Behzadi <dani.behzi@ubuntu.com>
|
||||||
|
;;; Copyright © 2021 Maxime Devos <maximedevos@telenet.be>
|
||||||
;;;
|
;;;
|
||||||
;;; This file is part of GNU Guix.
|
;;; This file is part of GNU Guix.
|
||||||
;;;
|
;;;
|
||||||
|
@ -857,14 +858,14 @@ (define-public python-pymediainfo
|
||||||
"/lib/libmediainfo.so.0")))
|
"/lib/libmediainfo.so.0")))
|
||||||
#t))
|
#t))
|
||||||
(replace 'check
|
(replace 'check
|
||||||
(lambda _
|
(lambda* (#:key tests? #:allow-other-keys)
|
||||||
;; Extend PYTHONPATH so the built package will be found.
|
(when tests?
|
||||||
(setenv "PYTHONPATH"
|
;; Extend PYTHONPATH so the built package will be found.
|
||||||
(string-append (getcwd) "/build/lib:"
|
(setenv "PYTHONPATH"
|
||||||
(getenv "PYTHONPATH")))
|
(string-append (getcwd) "/build/lib:"
|
||||||
;; Skip the only failing test "test_parse_url"
|
(getenv "PYTHONPATH")))
|
||||||
(invoke "pytest" "-vv" "-k" "not test_parse_url")
|
;; Skip the only failing test "test_parse_url"
|
||||||
#t)))))
|
(invoke "pytest" "-vv" "-k" "not test_parse_url")))))))
|
||||||
(home-page
|
(home-page
|
||||||
"https://github.com/sbraz/pymediainfo")
|
"https://github.com/sbraz/pymediainfo")
|
||||||
(synopsis
|
(synopsis
|
||||||
|
|
Loading…
Reference in a new issue