diff options
| author | Ghislain Vaillant <ghislain.vaillant@inria.fr> | 2026-08-30 18:26:10 +0200 |
|---|---|---|
| committer | Ghislain Vaillant <ghislain.vaillant@inria.fr> | 2026-08-30 18:30:14 +0200 |
| commit | 8f73c8ab274434371612176efa1633f97776684b (patch) | |
| tree | c5875cf064594a3606ed80294f32bc102c124b3b | |
| parent | ee85bc82a47a342ad18ec91cdf2b789fa33b136e (diff) | |
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}.
| -rw-r--r-- | guix-science/packages/python-xyz.scm | 28 |
1 files 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.") | |||
| 969 | (define-public python-mayavi | 969 | (define-public python-mayavi |
| 970 | (package | 970 | (package |
| 971 | (name "python-mayavi") | 971 | (name "python-mayavi") |
| 972 | (version "4.8.3") | 972 | (version "4.9.0") |
| 973 | (source | 973 | (source |
| 974 | (origin | 974 | (origin |
| 975 | (method git-fetch) | 975 | (method git-fetch) |
| @@ -977,28 +977,30 @@ As well as compression and disallowing duplicate keys.") | |||
| 977 | (url "https://github.com/enthought/mayavi") | 977 | (url "https://github.com/enthought/mayavi") |
| 978 | (commit version))) | 978 | (commit version))) |
| 979 | (sha256 | 979 | (sha256 |
| 980 | (base32 "0nzqy2z5kxkc6zwdhwgqgdxcrxd9ridq8wp1f9p7gkgjqbancybk")))) | 980 | (base32 "019x28j6p49n3z8pncybh1pq2a5j57jfjsvkd1ribkxya2dqjnm0")))) |
| 981 | (build-system pyproject-build-system) | 981 | (build-system pyproject-build-system) |
| 982 | (arguments | 982 | (arguments |
| 983 | (list | 983 | (list |
| 984 | #:test-flags | 984 | #:test-flags |
| 985 | #~(list | 985 | #~(list "mayavi" "tvtk") |
| 986 | ;; Ignore buggy tests. | ||
| 987 | "-k not import_tvtk_does_not_import_gui" | ||
| 988 | ;; Collect tests from all source modules. | ||
| 989 | "mayavi" "tvtk") | ||
| 990 | #:phases | 986 | #:phases |
| 991 | #~(modify-phases %standard-phases | 987 | #~(modify-phases %standard-phases |
| 992 | (add-after 'unpack 'fix-requirements | 988 | (add-after 'unpack 'fix-requirements |
| 993 | (lambda _ | 989 | (lambda _ |
| 994 | ;; Remove vtk, because it lacks package metadata. | 990 | ;; Remove vtk, because it lacks package metadata. |
| 995 | (substitute* "mayavi/__init__.py" | 991 | (substitute* "setup.py" |
| 996 | ((".*vtk.*") | 992 | (("install_requires=DEPENDENCIES.*,") |
| 997 | "")))) | 993 | "install_requires=DEPENDENCIES,")))) |
| 998 | (add-after 'build 'start-xorg-server | 994 | |
| 995 | (add-before 'build 'set-home | ||
| 996 | (lambda _ | ||
| 997 | (setenv "HOME" (getcwd)))) | ||
| 998 | |||
| 999 | (add-before 'build 'start-xorg-server | ||
| 999 | (lambda _ | 1000 | (lambda _ |
| 1000 | (system "Xvfb :99 -screen 0 1024x768x24 &") | 1001 | (system "Xvfb :99 -screen 0 1024x768x24 &") |
| 1001 | (setenv "DISPLAY" ":99"))) | 1002 | (setenv "DISPLAY" ":99"))) |
| 1003 | |||
| 1002 | (add-before 'check 'build-extensions | 1004 | (add-before 'check 'build-extensions |
| 1003 | (lambda _ | 1005 | (lambda _ |
| 1004 | (invoke "python3" "setup.py" "build_ext" "--inplace")))))) | 1006 | (invoke "python3" "setup.py" "build_ext" "--inplace")))))) |
| @@ -1011,12 +1013,14 @@ As well as compression and disallowing duplicate keys.") | |||
| 1011 | python-pygments | 1013 | python-pygments |
| 1012 | python-traits | 1014 | python-traits |
| 1013 | python-traitsui | 1015 | python-traitsui |
| 1014 | vtk-9.4)) | 1016 | vtk)) |
| 1015 | (native-inputs (list python-packaging | 1017 | (native-inputs (list python-packaging |
| 1016 | python-pillow | 1018 | python-pillow |
| 1017 | python-pyside-6 | 1019 | python-pyside-6 |
| 1018 | python-pytest | 1020 | python-pytest |
| 1021 | python-pytest-timeout | ||
| 1019 | python-setuptools | 1022 | python-setuptools |
| 1023 | python-setuptools-scm | ||
| 1020 | xorg-server)) | 1024 | xorg-server)) |
| 1021 | (home-page "http://docs.enthought.com/mayavi/mayavi") | 1025 | (home-page "http://docs.enthought.com/mayavi/mayavi") |
| 1022 | (synopsis "3D scientific data visualization library and application") | 1026 | (synopsis "3D scientific data visualization library and application") |
