sharlatan pushed a commit to branch master in repository guix. commit 35654cb6f9a38038cfd5193b8c41782de0927b93 Author: Sharlatan Hellseher <sharlata...@gmail.com> AuthorDate: Wed May 7 22:52:26 2025 +0100
gnu: Add python-sunpy-minimal. * gnu/packages/astronomy.scm (python-sunpy-minimal): New variable. (python-ndcube, python-sunraster) [native-inputs]: Remove python-sunpy; add python-sunpy-minimal. Change-Id: I270296ce365c58616629aa68c5668bde3dc905f3 --- gnu/packages/astronomy.scm | 24 ++++++++++++++++++++++-- 1 file changed, 22 insertions(+), 2 deletions(-) diff --git a/gnu/packages/astronomy.scm b/gnu/packages/astronomy.scm index 4dc5c13cfc..05f94c0f76 100644 --- a/gnu/packages/astronomy.scm +++ b/gnu/packages/astronomy.scm @@ -5023,7 +5023,7 @@ the easy construction of interactive matplotlib widget based animations.") python-scipy python-setuptools python-setuptools-scm-next - python-sunpy + python-sunpy-minimal python-wheel)) (home-page "https://docs.sunpy.org/projects/ndcube/") (synopsis "Multi-dimensional contiguous and non-contiguous coordinate aware arrays") @@ -7485,6 +7485,26 @@ and @code{astropy}.") to the SolarSoft data analysis environment.") (license license:bsd-2))) +;; A bare minimal package, mainly to use in tests and reduce closure +;; size. Tests are left out in the main package to slim down native-inputs. +(define-public python-sunpy-minimal + (hidden-package + (package/inherit python-sunpy + (name "python-sunpy-minimal") + (arguments + (substitute-keyword-arguments (package-arguments python-sunpy) + ((#:tests? _ #t) #f))) + (native-inputs + (list python-setuptools + python-setuptools-scm-next + python-wheel)) + (propagated-inputs + (list parfive + python-astropy-minimal + python-fsspec + python-mpl-animators + python-pyerfa))))) + (define-public python-sunraster (package (name "python-sunraster") @@ -7524,7 +7544,7 @@ to the SolarSoft data analysis environment.") python-pytest-astropy python-setuptools python-setuptools-scm - python-sunpy + python-sunpy-minimal python-wheel)) (propagated-inputs (list python-astropy