gnu: python-qtpy: Remove closure size.

* gnu/packages/qt.scm (python-qtpy):
[arguments] <test-flags>: Skip one more test.
<phases>: Add 'fix-pytest-config.
[native-inputs]: Remove
python-pyqt, python-pyside-2, python-pyside-6, python-pytest-cov,
python-pytest-qt, and python-wheel.

Fixes: guix/guix#3776
Change-Id: I029e65e854df4fb4cd71eb0bf3108f719615b769
This commit is contained in:
Sharlatan Hellseher 2025-10-24 23:12:35 +01:00
parent 64affa314f
commit bbd7bf2771
No known key found for this signature in database
GPG key ID: 76D727BFF62CD2B5

View file

@ -4763,17 +4763,23 @@ top of the PyQt bindings for Qt. PyQt-builder is used to build PyQt itself.")
"--ignore=qtpy/tests/test_qtwidgets.py"
"--ignore=qtpy/tests/test_uic.py"
;; ModuleNotFoundError: No module named 'PyQt5.QtTextToSpeech'
"-k" "not test_qttexttospeech")))
"-k" (string-append "not test_qttexttospeech"
;; Fatal Python error: Segmentation fault
" and not test_qtsql_members_aliases"))
#:phases
#~(modify-phases %standard-phases
(add-after 'unpack 'fix-pytest-config
(lambda _
;; Drop test coverage requirements.
(substitute* "pytest.ini"
(("--cov-report=term-missing") "")
(("--cov-report=xml") "")))))))
;; XXX: Do not include, even supported: Qt5, PySide2 PySide6, only test
;; agains Qt6 to reduce closure size..
(native-inputs
(list python-pyqt
python-pyqt-6
python-pyside-2
python-pyside-6
(list python-pyqt-6
python-pytest
python-pytest-cov
python-pytest-qt
python-setuptools
python-wheel))
python-setuptools))
(propagated-inputs
(list python-packaging))
(home-page "https://github.com/spyder-ide/qtpy")