mirror of
https://git.savannah.gnu.org/git/guix.git
synced 2025-02-11 06:20:18 +01:00
gnu: python-pyqtgraph: Update to 0.13.1.
* gnu/packages/python-xyz.scm (python-pyqtgraph): Update to 0.13.1. [build-system]: Use pyproject-build-system. [arguments]: Rewrite as G-expressions; disable tests through test-flags, not by replacing the 'check phase. [phases]: Remove trailing #t; rename the 'set-home-and-qpa phase to 'set-qpa. [native-inputs]: Replace python-pytest with python-pytest-7.1. [home-page]: Use https.
This commit is contained in:
parent
f70baf8af0
commit
39e80baafc
1 changed files with 13 additions and 30 deletions
|
@ -16146,48 +16146,31 @@ ISO 8859, etc.).")
|
||||||
(define-public python-pyqtgraph
|
(define-public python-pyqtgraph
|
||||||
(package
|
(package
|
||||||
(name "python-pyqtgraph")
|
(name "python-pyqtgraph")
|
||||||
(version "0.12.1")
|
(version "0.13.1")
|
||||||
(source
|
(source
|
||||||
(origin
|
(origin
|
||||||
(method url-fetch)
|
(method url-fetch)
|
||||||
(uri (pypi-uri "pyqtgraph" version))
|
(uri (pypi-uri "pyqtgraph" version))
|
||||||
(sha256
|
(sha256
|
||||||
(base32 "0kc7ncv0lr3spni29i9g8nszyr4xinswqi2zzs6v8kqqi593pvyj"))))
|
(base32 "026wq2p7h1dmg2ldwhxiv28i5qld0llhnak06dxp4rdrkpsqg3v9"))))
|
||||||
(build-system python-build-system)
|
(build-system pyproject-build-system)
|
||||||
(arguments
|
(arguments
|
||||||
`(#:phases
|
;; This test fails. It suggests to disable assert rewriting in Pytest,
|
||||||
(modify-phases %standard-phases
|
;; but it still doesn't pass.
|
||||||
(add-before 'check 'set-home-and-qpa
|
(list #:test-flags #~'("-k" "not test_reload")
|
||||||
(lambda _
|
#:phases
|
||||||
(setenv "HOME" "/tmp")
|
#~(modify-phases %standard-phases
|
||||||
(setenv "QT_QPA_PLATFORM" "offscreen")
|
(add-before 'check 'set-qpa
|
||||||
#t))
|
(lambda _
|
||||||
(replace 'check
|
(setenv "QT_QPA_PLATFORM" "offscreen"))))))
|
||||||
(lambda* (#:key inputs outputs #:allow-other-keys)
|
|
||||||
(add-installed-pythonpath inputs outputs)
|
|
||||||
(invoke "pytest" "-vv" "-k"
|
|
||||||
(string-append
|
|
||||||
;; These tests try to download online data.
|
|
||||||
"not test_PolyLineROI"
|
|
||||||
" and not test_getArrayRegion_axisorder"
|
|
||||||
" and not test_getArrayRegion"
|
|
||||||
" and not test_PlotCurveItem"
|
|
||||||
" and not test_NonUniformImage_colormap"
|
|
||||||
" and not test_NonUniformImage_lut"
|
|
||||||
" and not test_ImageItem_axisorder"
|
|
||||||
" and not test_ImageItem"
|
|
||||||
;; The test_reload test fails and suggests adding
|
|
||||||
;; "--assert=plain" to the pytest command, but it
|
|
||||||
;; doesn't solve the failure.
|
|
||||||
" and not test_reload")))))))
|
|
||||||
(native-inputs
|
(native-inputs
|
||||||
(list python-pytest python-pytest-cov python-pytest-xdist))
|
(list python-pytest-7.1 python-pytest-cov python-pytest-xdist))
|
||||||
(inputs
|
(inputs
|
||||||
(list qtbase-5))
|
(list qtbase-5))
|
||||||
(propagated-inputs
|
(propagated-inputs
|
||||||
(list python-h5py python-numpy python-pyopengl python-scipy
|
(list python-h5py python-numpy python-pyopengl python-scipy
|
||||||
python-pyqt-without-qtwebkit))
|
python-pyqt-without-qtwebkit))
|
||||||
(home-page "http://www.pyqtgraph.org")
|
(home-page "https://www.pyqtgraph.org")
|
||||||
(synopsis "Scientific graphics and GUI library for Python")
|
(synopsis "Scientific graphics and GUI library for Python")
|
||||||
(description
|
(description
|
||||||
"PyQtGraph is a Pure-python graphics library for PyQt5, PyQt6, PySide2
|
"PyQtGraph is a Pure-python graphics library for PyQt5, PyQt6, PySide2
|
||||||
|
|
Loading…
Add table
Reference in a new issue