gnu: openshot: Enable tests.

* gnu/packages/video.scm (openshot)[arguments]: Add custom 'check phase.
This commit is contained in:
Efraim Flashner 2020-04-01 22:15:50 +03:00
parent 5020a26392
commit e7228f0cfa
No known key found for this signature in database
GPG key ID: 41AAE7DCCA3D8351

View file

@ -3681,14 +3681,17 @@ (define-public openshot
("python-requests" ,python-requests)
("qtsvg" ,qtsvg)))
(arguments
`(#:tests? #f ;no tests
#:modules ((guix build python-build-system)
`(#:modules ((guix build python-build-system)
(guix build qt-utils)
(guix build utils))
#:imported-modules (,@%python-build-system-modules
(guix build qt-utils))
#:phases (modify-phases %standard-phases
(delete 'build) ;install phase does all the work
(replace 'check
(lambda _
(setenv "QT_QPA_PLATFORM" "offscreen")
(invoke "python" "src/tests/query_tests.py")))
(add-after 'unpack 'patch-font-location
(lambda* (#:key inputs #:allow-other-keys)
(let ((font (assoc-ref inputs "font-ubuntu")))