guix_mirror_bot pushed a commit to branch master
in repository guix.
commit d651764ec49e2418e2760d055e1061f2062bab65
Author: Ian Eure <[email protected]>
AuthorDate: Mon Feb 9 20:12:59 2026 -0800
Revert "gnu: Remove python-pyqtwebengine."
This reverts commit 843719a57a3932add83a6ca153d81cec39b8f617.
Change-Id: I33605011b2824c6a04e4616d14908eb48afea533
---
gnu/packages/qt.scm | 57 +++++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 57 insertions(+)
diff --git a/gnu/packages/qt.scm b/gnu/packages/qt.scm
index f7470a1d75..44afa30d13 100644
--- a/gnu/packages/qt.scm
+++ b/gnu/packages/qt.scm
@@ -4620,6 +4620,63 @@ contain over 620 classes.")
library to be wrapped. This SIP extension module provides support for the
PyQt6 package.")))
+(define-public python-pyqtwebengine
+ (package
+ (name "python-pyqtwebengine")
+ (version "5.15.9")
+ (source
+ (origin
+ (method url-fetch)
+ ;; The newest releases are only available on PyPI. Older ones
+ ;; are mirrored at the upstream home page.
+ (uri (list (pypi-uri "PyQtWebEngine" version)
+ (string-append "https://www.riverbankcomputing.com/static"
+ "/Downloads/PyQtWebEngine/" version
+ "/PyQtWebEngine-" version ".tar.gz")))
+ (sha256
+ (base32
+ "0hdr0g0rzlhsnylhfk826pq1lw8p9dqcr8yma2wy9dgjrj6n0ixb"))))
+ (build-system pyproject-build-system)
+ (native-inputs
+ (list python python-sip
+ python-pyqt-builder
+ ;; qtbase is required for qmake
+ qtbase-5))
+ (inputs
+ `(("python" ,python-wrapper)
+ ("python-sip" ,python-sip)
+ ("python-pyqt" ,python-pyqt)
+ ("qtbase" ,qtbase-5)
+ ("qtsvg-5" ,qtsvg-5)
+ ("qtdeclarative-5" ,qtdeclarative-5)
+ ("qtwebchannel-5" ,qtwebchannel-5)
+ ("qtwebengine-5" ,qtwebengine-5)))
+ (arguments
+ (list
+ #:tests? #f ; No tests.
+ #:configure-flags
+ #~`(("--verbose" . "") ; Print commands run.
+ ("--jobs" . ,(number->string (parallel-job-count))))
+ #:phases
+ #~(modify-phases %standard-phases
+ (add-after 'unpack 'set-include-dirs
+ (lambda* (#:key inputs outputs #:allow-other-keys)
+ (let* ((python (assoc-ref inputs "python"))
+ (python-pyqt (assoc-ref inputs "python-pyqt"))
+ (sip-include-dirs (string-append
+ python-pyqt "/lib/python"
+ (python-version python)
+ "/site-packages/PyQt5/bindings")))
+ (setenv "SIP_INCLUDE_DIRS" sip-include-dirs)))))))
+ (home-page
"https://www.riverbankcomputing.com/software/pyqtwebengine/intro")
+ (synopsis "Python bindings for QtWebEngine")
+ (description
+ "PyQtWebEngine is a set of Python bindings for The Qt Company's Qt
+WebEngine libraries. The bindings sit on top of PyQt5 and are implemented as a
+set of three modules. Prior to v5.12 these bindings were part of PyQt
+itself.")
+ (license license:gpl3)))
+
(define-public python-pyqtwebengine-6
(package
(name "python-pyqtwebengine")