diff options
author | Zhu Zihao <all_but_last@163.com> | 2023-11-23 12:59:18 +0100 |
---|---|---|
committer | Ludovic Courtès <ludo@gnu.org> | 2023-12-22 17:47:15 +0100 |
commit | 6dc9888302ff9aabf0673955e73e197a6766a0c6 (patch) | |
tree | 8f5aaa0ea58a6facf820f9fcf8b60f9ec661448e /gnu | |
parent | c758423033afab77a63971428a1fadceb522b32a (diff) | |
download | guix-6dc9888302ff9aabf0673955e73e197a6766a0c6.tar.gz guix-6dc9888302ff9aabf0673955e73e197a6766a0c6.zip |
gnu: Add python-pyqt, version 6.5.2.
* gnu/packages/qt.scm (python-pyqt-6): New variable.
Signed-off-by: Ludovic Courtès <ludo@gnu.org>
Diffstat (limited to 'gnu')
-rw-r--r-- | gnu/packages/qt.scm | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/gnu/packages/qt.scm b/gnu/packages/qt.scm index a2ed773b7f..002b750811 100644 --- a/gnu/packages/qt.scm +++ b/gnu/packages/qt.scm @@ -29,6 +29,7 @@ ;;; Copyright © 2022 Yash Tiwari <yasht@mailbox.org> ;;; Copyright © 2023 Sharlatan Hellseher <sharlatanus@gmail.com> ;;; Copyright © 2022 Zheng Junjie <873216071@qq.com> +;;; Copyright © 2023 Herman Rimm <herman@rimm.ee> ;;; ;;; This file is part of GNU Guix. ;;; @@ -3674,6 +3675,50 @@ framework. The bindings are implemented as a set of Python modules and contain over 620 classes.") (license license:gpl3))) +(define-public python-pyqt-6 + (package + (inherit python-pyqt) + (version "6.5.2") + (source + (origin + (method url-fetch) + (uri (pypi-uri "PyQt6" version)) + (file-name (string-append "PyQt6-" version ".tar.gz")) + (sha256 + (base32 "100jh1iiz5gx821qzgicfrqv7hjjj98pchdbc1nvdzzra1ryx1ql")))) + (inputs ;Qt5 dependencies only in python-pyqt: + ;; (qt)connectivity, location, sensors, serialport, x11extras, xmlpatterns. + (list python-wrapper + qtbase + qtdeclarative + qtmultimedia + qtpositioning + qtsvg + qttools + qtwebchannel + qtwebsockets)) + (propagated-inputs (list python-sip python-pyqt6-sip)) + (native-inputs (list python-pyqt-builder qtbase)) ;qtbase is required for qmake. + (arguments + (list + #:tests? #f ;No tests. + #:configure-flags #~`(@ ("--verbose" . "") ;Print commands run. + ("--confirm-license" . "") + ("--jobs" unquote + (number->string (parallel-job-count)))) + #:phases #~(modify-phases %standard-phases + ;; When building python-pyqtwebengine, <qprinter.h> cannot be + ;; included. Here we substitute the full path to the header in the + ;; store. + (add-after 'unpack 'substitute-source + (lambda* (#:key inputs #:allow-other-keys) + (let* ((qprinter.h (search-input-file inputs + "/include/qt6/QtPrintSupport/qprinter.h"))) + (substitute* (list "sip/QtPrintSupport/qprinter.sip" + "sip/QtPrintSupport/qpyprintsupport_qlist.sip") + (("qprinter.h") + qprinter.h)))))))))) + (define-public python-pyqt5-sip (package (name "python-pyqt5-sip") |