guix_mirror_bot pushed a commit to branch master
in repository guix.

commit 765ee4f74a7691cad8d723abdeebc11596ffdbbb
Author: Ghislain Vaillant <[email protected]>
AuthorDate: Sun Sep 28 11:18:54 2025 +0200

    gnu: Add python-pyvistaqt.
    
    * gnu/packages/python-science.scm (python-pyvistaqt): New variable.
    
    Change-Id: I0f843fb4e7bf160e0f8625824c172d11b2405fab
    Signed-off-by: Sharlatan Hellseher <[email protected]>
---
 gnu/packages/python-science.scm | 49 +++++++++++++++++++++++++++++++++++++++++
 1 file changed, 49 insertions(+)

diff --git a/gnu/packages/python-science.scm b/gnu/packages/python-science.scm
index cfae0a589b..b63e73a76b 100644
--- a/gnu/packages/python-science.scm
+++ b/gnu/packages/python-science.scm
@@ -36,6 +36,7 @@
 ;;; Copyright © 2025 Mark Walker <[email protected]>
 ;;; Copyright © 2025 Nguyễn Gia Phong <[email protected]>
 ;;; Copyright © 2025 Jake Forster <[email protected]>
+;;; Copyright © 2025 Ghislain Vaillant <[email protected]>
 ;;;
 ;;; 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")

Reply via email to