From a51172821030d48850cb73c36b5c5298fefae6b4 Mon Sep 17 00:00:00 2001 From: Nicolas Graves Date: Sun, 23 Nov 2025 12:51:39 +0100 Subject: [PATCH] gnu: python-meshio: Update to 5.3.5. * gnu/packages/simulation.scm (python-meshio): Update to 5.3.5. [source]: Remove snippet. [build-system]: Switch to pyproject-build-system. [native-inputs]: Add python-setuptools. [propagated-inputs]: Remove python-importlib-metadata. [inputs, description]: Improve style. Change-Id: I9cfe0bdbef3bbb8628e065d523dd65bf1fe388c6 Signed-off-by: Sharlatan Hellseher --- gnu/packages/simulation.scm | 45 +++++++++++++------------------------ 1 file changed, 15 insertions(+), 30 deletions(-) diff --git a/gnu/packages/simulation.scm b/gnu/packages/simulation.scm index e558bc2d2cef61094eee633012f6042b20b071d8..78bb45685c3b6ca8abc5ffa1a4f26ca2a9b007be 100644 --- a/gnu/packages/simulation.scm +++ b/gnu/packages/simulation.scm @@ -1104,43 +1104,28 @@ river flooding.") (define-public python-meshio (package (name "python-meshio") - (version "5.3.4") + (version "5.3.5") (source (origin + ;; Using PyPI rather than git because some test files must be + ;; downloaded through git-fls. (method url-fetch) (uri (pypi-uri "meshio" version)) (sha256 - (base32 - "1w39qcg0rw5kb04j7sa45fnqd6k20fsdgrf62cmw2ygjgwnnjh72")) - (snippet - '(let ((file (open-file "setup.py" "a"))) - (display "from setuptools import setup\nsetup()" file) - (close-port file))))) - (build-system python-build-system) - (inputs - (list python-h5py - python-netcdf4)) - (native-inputs - (list python-pytest)) - (propagated-inputs - (list python-importlib-metadata - python-numpy - python-rich)) - (arguments - '(#:phases - (modify-phases %standard-phases - (replace 'check - (lambda* (#:key tests? #:allow-other-keys) - (when tests? - (invoke "python" "-m" "pytest" "-v" "tests"))))))) + (base32 "0vaqhygr2d186qixvfckzqf4447674ylnc0rl5pa16zjv6mh27zj")))) + (build-system pyproject-build-system) + (inputs (list python-h5py python-netcdf4)) + (native-inputs (list python-pytest python-setuptools)) + (propagated-inputs (list python-numpy python-rich)) (home-page "https://github.com/nschloe/meshio") (synopsis "I/O for mesh files") - (description "There are various file formats available for -representing unstructured meshes and mesh data. The @code{meshio} -package is able to read and write mesh files in many formats and to -convert files from one format to another. Formats such as cgns, h5m, -gmsh, xdmf and vtk are supported. The package provides command-line -tools and a collection of Python modules for programmatic use.") + (description + "There are various file formats available for representing unstructured +meshes and mesh data. The @code{meshio} package is able to read and write +mesh files in many formats and to convert files from one format to another. +Formats such as cgns, h5m, gmsh, xdmf and vtk are supported. The package +provides command-line tools and a collection of Python modules for +programmatic use.") (license license:expat))) (define-public python-pygmsh