From 8f73c8ab274434371612176efa1633f97776684b Mon Sep 17 00:00:00 2001 From: Ghislain Vaillant Date: Sun, 30 Aug 2026 18:26:10 +0200 Subject: python-xyz: python-mayavi: Update to 4.9.0. * guix-science/packages/python-xyz.scm (python-mayavi) [source]: Update to 4.9.0. [arguments]<#:test-flags>: Remove test filters. <#:phases>: Refresh fix for requirements. Set home to writable location. [propagated-inputs]: Replace vtk-9.4 by vtk. [native-inputs]: Add python-{pytest-timeout,setuptools-scm}. --- guix-science/packages/python-xyz.scm | 28 ++++++++++++++++------------ 1 file changed, 16 insertions(+), 12 deletions(-) diff --git a/guix-science/packages/python-xyz.scm b/guix-science/packages/python-xyz.scm index 61a6729..aa97819 100644 --- a/guix-science/packages/python-xyz.scm +++ b/guix-science/packages/python-xyz.scm @@ -969,7 +969,7 @@ As well as compression and disallowing duplicate keys.") (define-public python-mayavi (package (name "python-mayavi") - (version "4.8.3") + (version "4.9.0") (source (origin (method git-fetch) @@ -977,28 +977,30 @@ As well as compression and disallowing duplicate keys.") (url "https://github.com/enthought/mayavi") (commit version))) (sha256 - (base32 "0nzqy2z5kxkc6zwdhwgqgdxcrxd9ridq8wp1f9p7gkgjqbancybk")))) + (base32 "019x28j6p49n3z8pncybh1pq2a5j57jfjsvkd1ribkxya2dqjnm0")))) (build-system pyproject-build-system) (arguments (list #:test-flags - #~(list - ;; Ignore buggy tests. - "-k not import_tvtk_does_not_import_gui" - ;; Collect tests from all source modules. - "mayavi" "tvtk") + #~(list "mayavi" "tvtk") #:phases #~(modify-phases %standard-phases (add-after 'unpack 'fix-requirements (lambda _ ;; Remove vtk, because it lacks package metadata. - (substitute* "mayavi/__init__.py" - ((".*vtk.*") - "")))) - (add-after 'build 'start-xorg-server + (substitute* "setup.py" + (("install_requires=DEPENDENCIES.*,") + "install_requires=DEPENDENCIES,")))) + + (add-before 'build 'set-home + (lambda _ + (setenv "HOME" (getcwd)))) + + (add-before 'build 'start-xorg-server (lambda _ (system "Xvfb :99 -screen 0 1024x768x24 &") (setenv "DISPLAY" ":99"))) + (add-before 'check 'build-extensions (lambda _ (invoke "python3" "setup.py" "build_ext" "--inplace")))))) @@ -1011,12 +1013,14 @@ As well as compression and disallowing duplicate keys.") python-pygments python-traits python-traitsui - vtk-9.4)) + vtk)) (native-inputs (list python-packaging python-pillow python-pyside-6 python-pytest + python-pytest-timeout python-setuptools + python-setuptools-scm xorg-server)) (home-page "http://docs.enthought.com/mayavi/mayavi") (synopsis "3D scientific data visualization library and application") -- cgit v1.2.3