summaryrefslogtreecommitdiff
path: root/gnu/packages/python-science.scm
diff options
context:
space:
mode:
authorReza Housseini <reza@housseini.me>2026-05-06 21:30:25 +0200
committerSharlatan Hellseher <sharlatanus@gmail.com>2026-05-17 00:52:59 +0100
commit4ca739f88687db2e538a8d61674675bd99dd2b9b (patch)
tree1bdea4a483248cda2c88af94fbe39c8ea2a41cc2 /gnu/packages/python-science.scm
parentadd7248b35b8dc1dcc7b14310b1c35f071922834 (diff)
gnu: Add python-openpmd-api.
* gnu/packages/python-xyz.scm (python-openpmd-api): New variable. Change-Id: Ibe42302342ec4a8fd551d417959a7d045ba13f05 Relates-to: guix/guix!8352 Reviewed-by: Hugo Buddelmeijer <hugo@buddelmeijer.nl> Modified-by: Sharlatan Hellseher <sharlatanus@gmail.com> Signed-off-by: Sharlatan Hellseher <sharlatanus@gmail.com>
Diffstat (limited to 'gnu/packages/python-science.scm')
-rw-r--r--gnu/packages/python-science.scm52
1 files changed, 52 insertions, 0 deletions
diff --git a/gnu/packages/python-science.scm b/gnu/packages/python-science.scm
index fe9cd7fa077..4c4591ec0fc 100644
--- a/gnu/packages/python-science.scm
+++ b/gnu/packages/python-science.scm
@@ -39,6 +39,7 @@
39;;; Copyright © 2025 Jake Forster <jakecameron.forster@gmail.com> 39;;; Copyright © 2025 Jake Forster <jakecameron.forster@gmail.com>
40;;; Copyright © 2025 Ghislain Vaillant <ghislain.vaillant@inria.fr> 40;;; Copyright © 2025 Ghislain Vaillant <ghislain.vaillant@inria.fr>
41;;; Copyright © 2025 Janneke Nieuwenhuizen <janneke@gnu.org> 41;;; Copyright © 2025 Janneke Nieuwenhuizen <janneke@gnu.org>
42;;; Copyright © 2026 Reza Housseini <reza@housseini.me>
42;;; 43;;;
43;;; This file is part of GNU Guix. 44;;; This file is part of GNU Guix.
44;;; 45;;;
@@ -2335,6 +2336,57 @@ evaluating arrays of polynomials based on @code{numpy.ndarray objects}.")
2335aggregated sum and more.") 2336aggregated sum and more.")
2336 (license license:bsd-3))) 2337 (license license:bsd-3)))
2337 2338
2339(define-public python-openpmd-api
2340 (package
2341 (name "python-openpmd-api")
2342 ;; This can be removed when version 0.17.1 is released.
2343 (properties '((commit . "ec8251eaa80ecc7182f83de2180d020f42978046")
2344 (revision . "0")))
2345 (version (git-version "0.17.0"
2346 (assoc-ref properties 'revision)
2347 (assoc-ref properties 'commit)))
2348 (source
2349 (origin
2350 (method git-fetch)
2351 (uri (git-reference
2352 (url "https://github.com/openPMD/openPMD-api")
2353 (commit (assoc-ref properties 'commit))))
2354 (file-name (git-file-name name version))
2355 (sha256
2356 (base32 "1y9jz1igjwcrxh5w31q0dmzb9hpizbmg4yzma14ca3pcs0na4mqc"))))
2357 (build-system cmake-build-system)
2358 (arguments
2359 (list
2360 #:configure-flags
2361 #~(list "-DopenPMD_SUPERBUILD=OFF")))
2362 (native-inputs
2363 (list catch2
2364 python-numpy))
2365 (inputs
2366 (list hdf5
2367 nlohmann-json
2368 openmpi
2369 pybind11
2370 python
2371 toml11))
2372 (propagated-inputs
2373 (list python-mpi4py))
2374 (home-page "https://openpmd-api.readthedocs.io/")
2375 (synopsis "C++ & Python API for Scientific I/O")
2376 (description
2377 "openPMD is an open meta-data schema that provides meaning and
2378self-description for data sets in science and engineering. See the
2379@url{https://github.com/openPMD/openPMD-standard, openPMD standard} for
2380details of this schema.
2381
2382This library provides a reference API for openPMD data handling. Since
2383openPMD is a schema (or markup) on top of portable, hierarchical file formats,
2384this library implements various backends such as HDF5, ADIOS2 and JSON.
2385Writing & reading through those backends and their associated files are
2386supported for serial and @url{https://www.mpi-forum.org/docs/, MPI-parallel}
2387workflows.")
2388 (license (list license:gpl3 license:lgpl3))))
2389
2338(define-public python-opt-einsum 2390(define-public python-opt-einsum
2339 (package 2391 (package
2340 (name "python-opt-einsum") 2392 (name "python-opt-einsum")