guix_mirror_bot pushed a commit to branch astro-update
in repository guix.
commit 5e46a9b3c7b7526d31a788ddadbaa316fc510a76
Author: Sharlatan Hellseher <[email protected]>
AuthorDate: Thu Jul 16 22:44:50 2026 +0100
gnu: Add python-muse.
* gnu/packages/astronomy.scm (python-muse): New variable.
---
gnu/packages/astronomy.scm | 68 ++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 68 insertions(+)
diff --git a/gnu/packages/astronomy.scm b/gnu/packages/astronomy.scm
index f00c1267be..a553364c6a 100644
--- a/gnu/packages/astronomy.scm
+++ b/gnu/packages/astronomy.scm
@@ -7698,6 +7698,74 @@ on:
the easy construction of interactive matplotlib widget based animations.")
(license license:bsd-3)))
+(define-public python-muse
+ (package
+ (name "python-muse")
+ ;; XXX: See: <https://github.com/LM-SAL/muse/issues/40>.
+ (version "0.2dev")
+ (source
+ (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/LM-SAL/muse")
+ (commit version)))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32 "0h407a2pyx62vrmvwbx2p7fg17xpmz05524nqx39mj4kn3cam6nf"))))
+ (build-system pyproject-build-system)
+ (arguments
+ (list
+ ;; tests: 85 passed, 19 deselected, 1 warning
+ #:test-flags
+ #~(list "-k" (string-join
+ ;; Jax is required.
+ (list "not test_add_history_stored_attrs_round_trip"
+ "test_instrument_defaults_reject_top_level_"
+ "test_jax_numpy_round_trip"
+ "test_numpy_to_jax_caps_precision_at_float32"
+ "test_resolve_backend_decision"
+ "test_vdem_synthesis_jax_backend_matches_numpy")
+ " and not "))
+ #:phases
+ #~(modify-phases %standard-phases
+ (add-after 'unpack 'relax-requirements
+ (lambda _
+ ;; XXX: Remove when python-team is merged.
+ (substitute* "pyproject.toml"
+ ((">=26.1.0") ">=25.3.0") ;python-attrs
+ ((">=2026.4.0") ">=2025.12.0") ;python-xarray
+ ((">=2.4.0") ">=2.3.1"))))))) ;python-numpy
+ (native-inputs
+ (list python-parameterized
+ python-pytest
+ python-pytest-doctestplus
+ python-pytest-loguru
+ python-pytest-mpl
+ python-pytorch
+ python-setuptools
+ python-setuptools-scm))
+ (propagated-inputs
+ (list python-astropy
+ python-attrs
+ python-loguru
+ python-matplotlib
+ python-numpy
+ python-xarray
+ ;; [optinal]
+ python-bokeh
+ python-cftime
+ python-h5netcdf
+ python-pooch
+ python-pydap
+ python-zarr))
+ (home-page "https://muse-lmsal.readthedocs.io/en/latest/")
+ (synopsis
+ "Multi-slit Solar Explorer (MUSE) mission data analyzing library")
+ (description
+ "@code{muse} is a library for reading, writing, and analyzing data from
+the Multi-slit Solar Explorer (@url{https://muse.lmsal.com/, MUSE}) mission.")
+ (license license:bsd-3)))
+
(define-public python-naima
(package
(name "python-naima")