gnu: Add python-stpsf.

* gnu/packages/astronomy.scm (python-stpsf): New variable.

Change-Id: Ic8625ded146ce1a50c2a5670f79c028849984a70
This commit is contained in:
Sharlatan Hellseher 2025-06-14 16:37:42 +01:00
parent 21051bd18b
commit f6143f3672
No known key found for this signature in database
GPG key ID: 76D727BFF62CD2B5

View file

@ -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: <https://stpsf.readthedocs.io/en/stable/installation.html>,
;; <https://github.com/spacetelescope/stpsf/issues/76>.
#: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")