From f6143f3672641059d28092a835e1a4bd2a7002a8 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Sat, 14 Jun 2025 16:37:42 +0100 Subject: [PATCH] gnu: Add python-stpsf. * gnu/packages/astronomy.scm (python-stpsf): New variable. Change-Id: Ic8625ded146ce1a50c2a5670f79c028849984a70 --- gnu/packages/astronomy.scm | 43 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) diff --git a/gnu/packages/astronomy.scm b/gnu/packages/astronomy.scm index 71aced42b93b6ce28f2a70d42688b2b7e175e9ed..1b85dd4265216f156b7cef9afd972061087cdc12 100644 --- a/gnu/packages/astronomy.scm +++ b/gnu/packages/astronomy.scm @@ -6440,6 +6440,49 @@ implementing calibration pipeline software.") ;; LICENSE Association of Universities for Research in Astronomy (AURA) (license license:bsd-3))) +(define-public python-stpsf + (package + (name "python-stpsf") + (version "2.1.0") + (source + (origin + (method url-fetch) + (uri (pypi-uri "stpsf" version)) + (sha256 + (base32 "191bwwv0ji7m74cglk5jvfgx6c4yfxhx6fd0w5n9k363cxqqp0x6")))) + (build-system pyproject-build-system) + (arguments + (list + ;; XXX: Tests and installation require 100MiB archive, upstream does + ;; not provide any version to pin particular data file per release, + ;; check if they can apply any tag. + ;; + ;; See: , + ;; . + #:tests? #f)) + (native-inputs + (list python-setuptools-next + python-setuptools-scm + python-wheel)) + (propagated-inputs + (list python-astropy + python-astroquery + python-matplotlib + python-numpy + python-photutils + python-poppy + python-pysiaf + python-scipy + python-synphot)) + (home-page "https://stpsf.readthedocs.io") + (synopsis "Creates simulated point spread functions for Space Telescopes)") + (description + "STPSF produces simulated PSFs for the James Webb Space Telescope, NASA's +flagship infrared space telescope. STPSF can simulate images for any of the four +science instruments plus the fine guidance sensor, including both direct +imaging, coronagraphic, and spectroscopic modes.") + (license license:bsd-3))) + (define-public python-pyerfa (package (name "python-pyerfa")