diff options
author | Sharlatan Hellseher <sharlatanus@gmail.com> | 2025-04-21 14:55:00 +0100 |
---|---|---|
committer | Sharlatan Hellseher <sharlatanus@gmail.com> | 2025-04-21 14:59:05 +0100 |
commit | 61bc31ae3185178abfc598c5436104c7f94e2d4e (patch) | |
tree | f2aa8f482c1aa9f1a14d5e88d94eb5032529181c | |
parent | 7a7eff34613c9b3357adf39813793f607c03629d (diff) | |
download | guix-61bc31ae3185178abfc598c5436104c7f94e2d4e.tar.gz guix-61bc31ae3185178abfc598c5436104c7f94e2d4e.zip |
gnu: python-qtpy: Update to 2.4.3.
* gnu/packages/qt.scm (python-qtpy): Update to 2.4.3.
[source] <pypi-uri>: Fix the name as PyPI archive has been changed.
[build-system]: Switch to pyproject.
[arguments] <tests?>: Enable them. <test-flags>: Skip some failing to
compile test files.
[native-inputs]: Add python-pyqt, python-pyqt-6, python-pyside-2,
python-pytest, python-pytest-cov, python-pytest-qt, python-setuptools,
and python-wheel.
[synopsis]: Fix it as no PyQt4 is supported.
[description]: Likewise.
Change-Id: Ia27dca847c6d6f0d4b7db74a9449255dabb669f8
-rw-r--r-- | gnu/packages/qt.scm | 44 |
1 files changed, 31 insertions, 13 deletions
diff --git a/gnu/packages/qt.scm b/gnu/packages/qt.scm index 3821906f28..c491b5536d 100644 --- a/gnu/packages/qt.scm +++ b/gnu/packages/qt.scm @@ -121,8 +121,9 @@ #:use-module (gnu packages protobuf) #:use-module (gnu packages python) #:use-module (gnu packages python-build) - #:use-module (gnu packages python-xyz) + #:use-module (gnu packages python-check) #:use-module (gnu packages python-web) + #:use-module (gnu packages python-xyz) #:use-module (gnu packages kde) #:use-module (gnu packages regex) #:use-module (gnu packages ruby) @@ -4382,25 +4383,42 @@ top of the PyQt bindings for Qt. PyQt-builder is used to build PyQt itself.") (define-public python-qtpy (package (name "python-qtpy") - (version "2.2.0") + (version "2.4.3") (source (origin (method url-fetch) - (uri (pypi-uri "QtPy" version)) + (uri (pypi-uri "qtpy" version)) (sha256 - (base32 - "051rj10lbv2ny48lz34zhclcbdxxdbk4di2mdk91m9143w91npyq")))) - (build-system python-build-system) - (propagated-inputs (list python-packaging)) + (base32 "1fzmrpjgchiiqsxnyg8ci553nazflfycr9lbas8dmlz669w4yx6v")))) + (build-system pyproject-build-system) (arguments - `(;; Not all supported bindings are packaged. Especially PyQt4. - #:tests? #f)) + (list + #:test-flags + ;; Fatal Python error: Aborted + #~(list "--ignore=qtpy/tests/test_compat.py" + "--ignore=qtpy/tests/test_qtcore.py" + "--ignore=qtpy/tests/test_qtgui.py" + "--ignore=qtpy/tests/test_qtprintsupport.py" + "--ignore=qtpy/tests/test_qtwidgets.py" + "--ignore=qtpy/tests/test_uic.py" + ;; ModuleNotFoundError: No module named 'PyQt5.QtTextToSpeech' + "-k" "not test_qttexttospeech"))) + (native-inputs + (list python-pyqt + python-pyqt-6 + python-pyside-2 + python-pytest + python-pytest-cov + python-pytest-qt + python-setuptools + python-wheel)) + (propagated-inputs + (list python-packaging)) (home-page "https://github.com/spyder-ide/qtpy") - (synopsis - "Qt bindings (PyQt5, PyQt4 and PySide) and additional custom QWidgets") + (synopsis "Uniform layer to support PyQt5, PySide2, PyQt6, PySide6") (description - "Provides an abstraction layer on top of the various Qt bindings -(PyQt5, PyQt4 and PySide) and additional custom QWidgets.") + "Provides an abstraction layer on top of the various Qt bindings (PyQt5, +PySide2, PyQt6, PySide6) and additional custom QWidgets.") (license license:expat))) (define-public python-qt.py |