guix_mirror_bot pushed a commit to branch master
in repository guix.
commit 1b3926180e2ebe8aa6170a540e54083fb3b725e3
Author: Sharlatan Hellseher <[email protected]>
AuthorDate: Thu Oct 23 10:25:24 2025 +0100
gnu: python-pyqtgraph: Reduce closure size, don't propagate Qt5/Qt6.
Don't propagate Qt5/Qt6 and let the user of the package to select which
one is required.
From project's documentation:
When pyqtgraph is first imported, if the environment variable
PYQTGRAPH_QT_LIB is not set, it automatically determines which library
to use by making the following checks:
- If PyQt6 is already imported, use that
- Else, if PySide6 is already imported, use that
- Else, if PyQt5 is already imported, use that
- Else, if PySide2 is already imported, use that
- Else, attempt to import PyQt6, PySide6, PyQt5, PySide2, in that
order.
See:
<https://pyqtgraph.readthedocs.io/en/pyqtgraph-0.13.7/getting_started/how_to_use.html#pyqt-and-pyside>.
* gnu/packages/python-science.scm (python-pyqtgraph)[arguments]
<test-flags>: Run unit tests only, skip one more failing test, run in a
single thread.
[inputs]: Remove qtbase-5.
[propagated-inputs]: Remove python-pyqt.
[native-inputs]: Remove python-pytest-cov, python-pytest-xdist, and
python-wheel; add python-pyqt-6 and python-pytest-qt.
Change-Id: Icb272c5215215b96faad8420e1781a5e61ab838d
---
gnu/packages/python-science.scm | 28 ++++++++++++++++------------
1 file changed, 16 insertions(+), 12 deletions(-)
diff --git a/gnu/packages/python-science.scm b/gnu/packages/python-science.scm
index c514e0ab46..1f7d78edf6 100644
--- a/gnu/packages/python-science.scm
+++ b/gnu/packages/python-science.scm
@@ -5876,11 +5876,15 @@ abstractions to use in dvc and dvc-data.")
(base32 "1qyr461hcvhgy02slfkgrbip2xwa8zz6dvmi1476v6f66lclzy34"))))
(build-system pyproject-build-system)
(arguments
+ ;; tests: 949 passed, 1356 skipped, 2 deselected, 8 xfailed, 130 warnings
(list #:test-flags
- ;; The test_reload test fails. It suggests to disable assert
- ;; rewriting in Pytest, but it still doesn't pass.
- #~(list "-k" "not test_reload"
- "-n" (number->string (parallel-job-count)))
+ ;; Failed: CALL ERROR: Exceptions caught in Qt event loop.
+ #~(list "--deselect=tests/exporters/test_svg.py::test_plotscene"
+ ;; The test_reload test fails. It suggests to disable
+ ;; assert rewriting in Pytest, but it still doesn't pass.
+ "-k" "not test_reload"
+ ;; Run unit tets only.
+ "tests")
#:phases
#~(modify-phases %standard-phases
(add-before 'check 'set-qpa
@@ -5888,18 +5892,18 @@ abstractions to use in dvc and dvc-data.")
(setenv "QT_QPA_PLATFORM" "offscreen"))))))
(native-inputs
(list python-pytest
- python-pytest-cov
- python-pytest-xdist
- python-setuptools
- python-wheel))
- (inputs
- (list qtbase-5))
+ ;; Do not propagate Qt5/Qt6 let the user of the package to select
+ ;; any supported one, see
+ ;; <https://pyqtgraph.readthedocs.io/en/pyqtgraph-0.13.7>
+ ;; </getting_started/how_to_use.html#pyqt-and-pyside>.
+ python-pyqt-6
+ python-pytest-qt
+ python-setuptools))
(propagated-inputs
(list python-h5py
python-numpy
python-pyopengl
- python-scipy
- python-pyqt))
+ python-scipy))
(home-page "https://www.pyqtgraph.org")
(synopsis "Scientific graphics and GUI library for Python")
(description