1
0
mirror of https://git.savannah.gnu.org/git/guix.git synced 2026-04-06 21:20:33 +02:00

gnu: Add python-pyvistaqt.

* gnu/packages/python-science.scm (python-pyvistaqt): New variable.

Change-Id: I0f843fb4e7bf160e0f8625824c172d11b2405fab
Signed-off-by: Sharlatan Hellseher <sharlatanus@gmail.com>
This commit is contained in:
Ghislain Vaillant
2025-09-28 11:18:54 +02:00
committed by Sharlatan Hellseher
parent 19f80dff85
commit 765ee4f74a

View File

@@ -36,6 +36,7 @@
;;; Copyright © 2025 Mark Walker <mark.damon.walker@gmail.com>
;;; Copyright © 2025 Nguyễn Gia Phong <mcsinyx@disroot.org>
;;; Copyright © 2025 Jake Forster <jakecameron.forster@gmail.com>
;;; Copyright © 2025 Ghislain Vaillant <ghislain.vaillant@inria.fr>
;;;
;;; This file is part of GNU Guix.
;;;
@@ -5297,6 +5298,54 @@ powerful visualization backend to facilitate rapid prototyping, analysis, and
visual integration of spatially referenced datasets.")
(license license:expat)))
(define-public python-pyvistaqt
(package
(name "python-pyvistaqt")
(version "0.11.3")
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/pyvista/pyvistaqt")
(commit version)))
(file-name (git-file-name name version))
(sha256
(base32 "04f9cd98k463pdrpi8jby411x9mc0ih62gl0nv0h9w3r7pwl61yl"))))
(build-system pyproject-build-system)
(arguments
(list
#:phases
#~(modify-phases %standard-phases
(add-after 'unpack 'fix-pytest
(lambda _
(substitute* "tests/conftest.py"
(("pytest.skip")
"pytest.mark.skipif"))))
(add-before 'check 'before-check
(lambda _
;; Testing requires write access.
(setenv "HOME" "/tmp")
;; Testing requires a running xorg server.
(system "Xvfb :99 -screen 0 1024x768x24 &")
(setenv "DISPLAY" ":99.0"))))))
(propagated-inputs (list python-pyvista python-qtpy))
(native-inputs (list python-ipython
python-matplotlib
python-numpy
python-pytest
python-pytest-cov
python-pytest-qt
python-setuptools
python-sphinx-gallery
xorg-server))
(home-page "https://github.com/pyvista/pyvistaqt")
(synopsis "Qt support for PyVista")
(description
"@code{pyvistaqt} is a helper module for @code{pyvista} to enable you to
plot using Qt by placing a vtk-widget into a background renderer. This can be
quite useful when you desire to update your plot in real-time.")
(license license:expat)))
(define-public python-simplespectral
(package
(name "python-simplespectral")