From 29831cd4b0de4176e130ffc6ab8c10563923c9e6 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Tue, 17 Jun 2025 14:20:33 +0100 Subject: [PATCH] gnu: Add python-drizzlepac. * gnu/packages/astronomy.scm (python-drizzlepac): New variable. Change-Id: I6492e9a31f80a9e8bccf47a5f7cf6e5696ad8bcd --- gnu/packages/astronomy.scm | 67 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 67 insertions(+) diff --git a/gnu/packages/astronomy.scm b/gnu/packages/astronomy.scm index 37379978cc14920536d1920139c7cce7af9dff14..3c0aa9f88ef7509b61dbf654d68a5e42997f2d7f 100644 --- a/gnu/packages/astronomy.scm +++ b/gnu/packages/astronomy.scm @@ -79,6 +79,7 @@ #:use-module (gnu packages parallel) #:use-module (gnu packages perl) #:use-module (gnu packages photo) + #:use-module (gnu packages pdf) #:use-module (gnu packages pkg-config) #:use-module (gnu packages plotutils) #:use-module (gnu packages popt) @@ -3395,6 +3396,72 @@ mapping by using a Python callback. Switching to using an array allowed the code to be greatly simplified.") (license license:bsd-3))) +(define-public python-drizzlepac + (package + (name "python-drizzlepac") + (version "3.7.1") ; higher versions require NumPy 2+ + (source + (origin + (method url-fetch) + (uri (pypi-uri "drizzlepac" version)) + (sha256 + (base32 "0vb1sxq4hjh9p7gi320k7nwmm7f0dm4i9dn5wl56h30n0m16lp37")))) + (build-system pyproject-build-system) + (arguments + (list + ;; TODO: Tests fail to load with error: E ModuleNotFoundError: No module + ;; named 'stsci.tools' + #:tests? #f + ;; TODO: Sanity check phase fails a lot on mismatched versions or failed + ;; to load "stsci.tools" module. + #:phases #~(modify-phases %standard-phases + (delete 'sanity-check)))) + (native-inputs + (list python-astropy + python-ci-watson + python-crds + python-pytest + python-pytest-remotedata + python-setuptools + python-setuptools-scm-next + python-wheel)) + (propagated-inputs + (list python-astrocut + python-astropy + python-astroquery + python-bokeh + python-fitsblender + python-lxml + python-markupsafe + python-matplotlib + python-numpy + python-pandas + python-photutils + python-pypdf2 + python-regions + python-requests-next + python-scikit-image + python-scikit-learn + python-scipy + python-simplify-polyline + python-spherical-geometry + python-stsci-image + python-stsci-imagestats + python-stsci-skypac + python-stsci-stimage + python-stsci-tools + python-stwcs + python-tables + python-tweakwcs)) + (home-page "https://drizzlepac.readthedocs.io/") + (synopsis "AstroDrizzle for HST images") + (description + "@acronym{Hubble Space Telescope , HST} image combination using the +drizzle algorithm to combine astronomical images, to model image distortion, +to remove cosmic rays, and generally to improve the fidelity of data in the +final image.") + (license license:bsd-3))) + (define-public python-drms (package (name "python-drms")