guix_mirror_bot pushed a commit to branch master
in repository guix.
commit 790855ba807e611509b596bed603ca712f16543f
Author: Vinicius Monego <[email protected]>
AuthorDate: Thu Sep 3 19:32:53 2026 -0300
gnu: openshot: Update to 4.0.0.
* gnu/packages/video.scm (openshot): Update to 4.0.0.
[arguments]<#:phases>: Add phases 'install-qt-api' after 'install',
'wrap-qt-api' after 'wrap'.
---
gnu/packages/video.scm | 26 ++++++++++++++++++++++----
1 file changed, 22 insertions(+), 4 deletions(-)
diff --git a/gnu/packages/video.scm b/gnu/packages/video.scm
index 3732f9a346f..79876bb6c92 100644
--- a/gnu/packages/video.scm
+++ b/gnu/packages/video.scm
@@ -6601,7 +6601,7 @@ API. It includes bindings for Python, Ruby, and other
languages.")
(define-public openshot
(package
(name "openshot")
- (version "3.5.1")
+ (version "4.0.0")
(source
(origin
(method git-fetch)
@@ -6610,11 +6610,10 @@ API. It includes bindings for Python, Ruby, and other
languages.")
(commit (string-append "v" version))))
(file-name (git-file-name name version))
(sha256
- (base32 "0df8sb7k43m580b50c1g430fqbml6vzszaklp9z7767j4gfz1dl8"))
+ (base32 "1ngz9v1syclwg8z8wp8i0h2pn4qvz0ligz73w40hbznpn1pk48k9"))
(modules '((guix build utils)))
(snippet
'(begin
- ;; TODO: Unbundle jquery and others from src/timeline/media
(delete-file-recursively "src/images/fonts")))))
(build-system pyproject-build-system)
(arguments
@@ -6640,7 +6639,26 @@ API. It includes bindings for Python, Ruby, and other
languages.")
(lambda _
;; src/classes/info.py "needs" to create several
;; directories in $HOME when loaded during build
- (setenv "HOME" "/tmp"))))))
+ (setenv "HOME" "/tmp")))
+ ;; Openshot imports 'qt_api.py' from site-packages/openshot_qt
+ ;; and we need to pass it explicitly to both build ('install-qt-api)
+ ;; and run ('wrap-qt-api) time.
+ (add-after 'install 'install-qt-api
+ (lambda _
+ (setenv "PYTHONPATH"
+ (string-append #$output
+ "/lib/python"
+ #$(version-major+minor
+ (package-version python))
+ "/site-packages/openshot_qt"))))
+ (add-after 'wrap 'wrap-qt-api
+ (lambda _
+ (wrap-program (string-append #$output "/bin/openshot-qt")
+ `("PYTHONPATH" =
+ (,(string-append #$output "/lib/python"
+ #$(version-major+minor
+ (package-version python))
+ "/site-packages/openshot_qt")))))))))
(inputs (list bash-minimal
ffmpeg
font-dejavu