aboutsummaryrefslogtreecommitdiff
path: root/gnu/packages/astronomy.scm
diff options
context:
space:
mode:
Diffstat (limited to 'gnu/packages/astronomy.scm')
-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")