diff options
Diffstat (limited to 'gnu')
| -rw-r--r-- | gnu/packages/video.scm | 57 |
1 files changed, 31 insertions, 26 deletions
diff --git a/gnu/packages/video.scm b/gnu/packages/video.scm index 904bc9a991..728181410f 100644 --- a/gnu/packages/video.scm +++ b/gnu/packages/video.scm @@ -6375,7 +6375,37 @@ API. It includes bindings for Python, Ruby, and other languages.") '(begin ;; TODO: Unbundle jquery and others from src/timeline/media (delete-file-recursively "src/images/fonts") #t)))) - (build-system python-build-system) + (build-system pyproject-build-system) + (arguments + (list + #:modules `((guix build pyproject-build-system) + (guix build qt-utils) + (guix build utils)) + #:imported-modules + (cons* '(guix build qt-utils) %pyproject-build-system-modules) + #:phases + #~(modify-phases %standard-phases + (delete 'build) ;install phase does all the work + (replace 'check + (lambda* (#:key tests? #:allow-other-keys) + (when tests? + (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-dejavu"))) + (substitute* "src/classes/app.py" + (("info.IMAGES_PATH") + (string-append "\"" font "\"")) + (("fonts") + "share/fonts/truetype") + (("[A-Za-z_-]+.ttf") + "DejaVuSans.ttf"))))) + (add-before 'install 'set-tmp-home + (lambda _ + ;; src/classes/info.py "needs" to create several + ;; directories in $HOME when loaded during build + (setenv "HOME" "/tmp")))))) (inputs (list bash-minimal ffmpeg @@ -6388,31 +6418,6 @@ API. It includes bindings for Python, Ruby, and other languages.") python-requests qtsvg-5 qtwebengine-5)) - (arguments - `(#: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* (#:key tests? #:allow-other-keys) - (when tests? - (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-dejavu"))) - (substitute* "src/classes/app.py" - (("info.IMAGES_PATH") (string-append "\"" font "\"")) - (("fonts") "share/fonts/truetype") - (("[A-Za-z_-]+.ttf") "DejaVuSans.ttf"))))) - (add-before 'install 'set-tmp-home - (lambda _ - ;; src/classes/info.py "needs" to create several - ;; directories in $HOME when loaded during build - (setenv "HOME" "/tmp")))))) (home-page "https://www.openshot.org/") (synopsis "Video editor") (description "OpenShot takes your videos, photos, and music files and |
