aboutsummaryrefslogtreecommitdiff
path: root/gnu/packages
diff options
context:
space:
mode:
authorSharlatan Hellseher <sharlatanus@gmail.com>2024-10-27 21:02:48 +0000
committerSharlatan Hellseher <sharlatanus@gmail.com>2024-10-27 21:03:44 +0000
commit0d15c6e46c5c3a14ae776bb98c293527ba8ad319 (patch)
tree09d3d86a60864f16c21d92f20fe3aafcb63694db /gnu/packages
parent091131af64fd4e4e925fff829fa19097cfcdfcc5 (diff)
downloadguix-0d15c6e46c5c3a14ae776bb98c293527ba8ad319.tar
guix-0d15c6e46c5c3a14ae776bb98c293527ba8ad319.tar.gz
gnu: Add python-astropy-minimal.
* gnu/packages/astronomy.scm (python-astropy-minimal): New variable. Change-Id: Iae90a9d988647b6f8f81c0ccb871c156ee6dfe1e
Diffstat (limited to 'gnu/packages')
-rw-r--r--gnu/packages/astronomy.scm20
1 files changed, 20 insertions, 0 deletions
diff --git a/gnu/packages/astronomy.scm b/gnu/packages/astronomy.scm
index 106f524a73..59d2940159 100644
--- a/gnu/packages/astronomy.scm
+++ b/gnu/packages/astronomy.scm
@@ -2816,6 +2816,26 @@ much of the core functionality and some common tools needed for performing
astronomy and astrophysics.")
(license license:bsd-3)))
+;; 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-astropy-minimal
+ (package/inherit python-astropy
+ (name "python-astropy-minimal")
+ (arguments
+ (substitute-keyword-arguments (package-arguments python-astropy)
+ ((#:tests? _ #t) #f)))
+ (native-inputs
+ (list nss-certs-for-test
+ pkg-config
+ python-cython-3
+ python-extension-helpers
+ python-setuptools
+ python-setuptools-scm))
+ (propagated-inputs
+ (modify-inputs (package-propagated-inputs python-astropy)
+ (delete python-matplotlib
+ python-scipy)))))
+
(define-public python-astropy-healpix
(package
(name "python-astropy-healpix")