From 18831a399f1be3748c55d25c3c1bb80036c2cbcb Mon Sep 17 00:00:00 2001 From: Zhu Zihao Date: Fri, 26 Aug 2022 17:50:36 +0800 Subject: [PATCH 8/9] gnu: Add python-pyqt, version 6.3.1. * gnu/packages/qt.scm (python-pyqt): New variable. --- gnu/packages/qt.scm | 59 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 59 insertions(+) diff --git a/gnu/packages/qt.scm b/gnu/packages/qt.scm index b89cf989ec..ac575c9828 100644 --- a/gnu/packages/qt.scm +++ b/gnu/packages/qt.scm @@ -2978,6 +2978,65 @@ (define-public python-sip-4 "--incdir" include))))))) (license license:gpl3))) +(define-public python-pyqt + (package + (name "python-pyqt") + (version "6.3.1") + (source + (origin + (method url-fetch) + (uri (pypi-uri "PyQt6" version)) + (file-name (string-append "PyQt6-" version ".tar.gz")) + (sha256 + (base32 + "0mwp5iyh21jzsvd66rcpxzr142kiv769dqwpr0gps17pp8fy5ilc")))) + (inputs + (list python-wrapper + qtbase + qtdeclarative + qtmultimedia + qtpositioning + qtsvg + qttools + qtwebchannel + qtwebsockets)) + (propagated-inputs + (list python-pyqt6-sip)) + (native-inputs + (list python-pyqt-builder + python-sip + python-wrapper + qtbase)) ;qmake + (build-system gnu-build-system) + (arguments + (list + #:imported-modules `((guix build python-build-system) + ,@%gnu-build-system-modules) + #:modules `(((guix build python-build-system) #:select (site-packages)) + ,@%gnu-build-system-modules) + #:phases + #~(modify-phases %standard-phases + (replace 'configure + (lambda* (#:key inputs outputs #:allow-other-keys) + (invoke "sip-build" + "--verbose" + "--confirm-license" + "--no-make" + "--qmake" (search-input-file inputs "/bin/qmake") + "--target-dir" (site-packages inputs outputs) + "--scripts-dir" (string-append #$output "/bin")))) + (add-before 'build 'enter-build-directory + (lambda _ (chdir "build") #t)) + (add-after 'install 'leave-build-directory + (lambda _ (chdir "..") #t))))) + (home-page "https://www.riverbankcomputing.com/software/pyqt/intro") + (synopsis "Python bindings for Qt6") + (description + "PyQt is a set of Python v3 bindings for the Qt6 application framework. +The bindings are implemented as a set of Python modules and contain over +620 classes.") + (license license:gpl3))) + (define-public python-pyqt-5 (package (name "python-pyqt") -- 2.37.2