diff options
| author | Sharlatan Hellseher <sharlatanus@gmail.com> | 2025-12-16 21:28:13 +0000 |
|---|---|---|
| committer | Sharlatan Hellseher <sharlatanus@gmail.com> | 2025-12-30 11:40:47 +0000 |
| commit | f96c7954e5a070cb87a0e80da18f3add3f70bb9c (patch) | |
| tree | 7dbba5dc1c5e85a851c211d1ab9df846381319c3 | |
| parent | 197515411c679b0d75158d6c6b6d311b4cf5faf9 (diff) | |
gnu: Add python-swiftsimio.
* gnu/packages/astronomy.scm (python-swiftsimio): New variable.
Change-Id: Iddd658ae8e79694c9074238080a5bff0460b6b14
| -rw-r--r-- | gnu/packages/astronomy.scm | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/gnu/packages/astronomy.scm b/gnu/packages/astronomy.scm index 667d971164..9404b7aab6 100644 --- a/gnu/packages/astronomy.scm +++ b/gnu/packages/astronomy.scm @@ -10257,6 +10257,41 @@ WGS84 (GPS) latitude/longitude as input as well as an UTC or local datetime object.") (license license:lgpl3+))) +(define-public python-swiftsimio + (package + (name "python-swiftsimio") + (version "9.0.1") ; higher versions require NumPy 2+ + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/SWIFTSIM/swiftsimio") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "16f4vfdjfhhm4mriwm3x32mn6f85bksaymzq1n5abn807zmgjyz2")))) + (build-system pyproject-build-system) + (arguments + (list #:tests? #f)) ;tests need to download remote datasets + (native-inputs + (list python-setuptools)) + (propagated-inputs + (list python-astropy + python-h5py + python-numba + python-numpy + python-unyt)) + (home-page "https://github.com/SWIFTSIM/swiftsimio") + (synopsis "SWIFTsim I/O routines for Python") + (description + "@code{swiftsimio} is a toolkit for reading data produced by the +@url{https://swift.strw.leidenuniv.nl/,SWIFT} astrophysics simulation code. +It is used to ensure that all data have a symbolic unit attached, and can be +used for visualisation. Another key feature is the use of the cell metadata +in @code{SWIFT} snapshots to enable efficient reading of sub-regions.") + (license (list license:lgpl3+ + license:gpl3+)))) + (define-public python-synphot (package (name "python-synphot") |
