diff options
author | Sharlatan Hellseher <sharlatanus@gmail.com> | 2025-03-23 00:00:35 +0000 |
---|---|---|
committer | Sharlatan Hellseher <sharlatanus@gmail.com> | 2025-03-23 00:12:27 +0000 |
commit | f6147d476d65d04eba3654c3c9251e1bd6eac21a (patch) | |
tree | 1697b08cb89ac1a91feae5a5228a7aeea053b6ae | |
parent | 8f17262cebc3edd636b058815b9eb0923f7c7f4c (diff) | |
download | guix-f6147d476d65d04eba3654c3c9251e1bd6eac21a.tar.gz guix-f6147d476d65d04eba3654c3c9251e1bd6eac21a.zip |
gnu: python-vedo: Update to 2025.5.3.
fenics is no longer required and it fails to build, see #77195.
* gnu/packages/python-science.scm (python-vedo): Update to 2025.5.3, fix
build.
[build-system]: Swap to pyproject-build-system.
[arguments] <tests?>: Disable as depend on remote data.
<phases>: Remove 'fix-tests, 'mpi-setup, use default 'check, keep
'sanity-check; add 'relax-requirements.
[propagated-inputs]: Remove fenics; add python-pygments.
[native-inputs]: Add python-setuptools and python-wheel.
Change-Id: Ifbe63d794f592083f2e65366404f152fda9b3136
-rw-r--r-- | gnu/packages/python-science.scm | 53 |
1 files changed, 22 insertions, 31 deletions
diff --git a/gnu/packages/python-science.scm b/gnu/packages/python-science.scm index 33d29536bb..247ec44629 100644 --- a/gnu/packages/python-science.scm +++ b/gnu/packages/python-science.scm @@ -2637,7 +2637,7 @@ readable.") (define-public python-vedo (package (name "python-vedo") - (version "2022.2.0") + (version "2025.5.3") (source (origin (method git-fetch) @@ -2646,43 +2646,34 @@ readable.") (commit (string-append "v" version)))) (file-name (git-file-name name version)) (sha256 - (base32 - "1hhv4xc4bphhd1zrnf7r6fpf65xvkdqmb1lh51qg1xpv91h2az0h")))) - (build-system python-build-system) + (base32 "0hrqyvcxxbc1wz0cnafc8rvsi5mj19kck4b6pmddh25rlhdcr5qb")))) + (build-system pyproject-build-system) (arguments - `(#:phases - (modify-phases %standard-phases - (add-after 'unpack 'fix-tests - ;; These tests require online data. + (list + ;; XXX: The whole test suite depends on the data from + ;; <https://vedo.embl.es/examples> providing samples which need to be + ;; downloaded during tests, find the way how to enable it. + #:tests? #f + #:phases + #~(modify-phases %standard-phases + (add-after 'unpack 'relax-requirements + ;; vtk does not provide Python metadata. + ;; + ;; ...checking requirements: ERROR: vedo==2025.5.3 + ;; DistributionNotFound(Requirement.parse('vtk'), {'vedo'}) (lambda _ - (substitute* "tests/common/test_actors.py" - (("^st = .*") "") - (("^assert isinstance\\(st\\.GetTexture\\(\\), .*") "")) - (delete-file "tests/common/test_pyplot.py"))) - (add-after 'build 'mpi-setup - ,%openmpi-setup) - (replace 'check - (lambda* (#:key tests? inputs outputs #:allow-other-keys) - (when tests? - (setenv "HOME" (getcwd)) - (add-installed-pythonpath inputs outputs) - (with-directory-excursion "tests" - (for-each (lambda (dir) - (with-directory-excursion dir - (invoke "./run_all.sh"))) - '("common" "dolfin")))))) - ;; Disable the sanity check, which fails with the following error: - ;; - ;; ...checking requirements: ERROR: vedo==2022.2.0 DistributionNotFound(Requirement.parse('vtk<9.1.0'), {'vedo'}) - (delete 'sanity-check)))) + (substitute* "pyproject.toml" + (("\"vtk\",") ""))))))) (native-inputs (list pkg-config - python-pkgconfig)) + python-pkgconfig + python-setuptools + python-wheel)) (propagated-inputs - (list fenics - python-deprecated + (list python-deprecated python-matplotlib python-numpy + python-pygments vtk)) (home-page "https://github.com/marcomusy/vedo") (synopsis |