summaryrefslogtreecommitdiff
path: root/gnu/packages/python-science.scm
diff options
context:
space:
mode:
authorSharlatan Hellseher <sharlatanus@gmail.com>2025-10-23 10:25:24 +0100
committerSharlatan Hellseher <sharlatanus@gmail.com>2025-10-23 13:29:25 +0100
commit1b3926180e2ebe8aa6170a540e54083fb3b725e3 (patch)
treec60d2afb3523bfc5896ced36239ae5d0aceea357 /gnu/packages/python-science.scm
parent4dccab3a9ce70d8e1f20dc1d0a54553c59d97366 (diff)
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
Diffstat (limited to 'gnu/packages/python-science.scm')
-rw-r--r--gnu/packages/python-science.scm28
1 files changed, 16 insertions, 12 deletions
diff --git a/gnu/packages/python-science.scm b/gnu/packages/python-science.scm
index c514e0ab461..1f7d78edf68 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