[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug#73399] [PATCH v2 22/25] gnu: Add python-webbpsf.
From: |
Sharlatan Hellseher |
Subject: |
[bug#73399] [PATCH v2 22/25] gnu: Add python-webbpsf. |
Date: |
Sat, 21 Sep 2024 14:55:54 +0100 |
* gnu/packages/astronomy.scm (python-webbpsf): New variable.
Change-Id: Ia439e0a3ebee219ae5d680b30cecde717611e579
---
gnu/packages/astronomy.scm | 61 ++++++++++++++++++++++++++++++++++++++
1 file changed, 61 insertions(+)
diff --git a/gnu/packages/astronomy.scm b/gnu/packages/astronomy.scm
index 74b0e63481..973e6af594 100644
--- a/gnu/packages/astronomy.scm
+++ b/gnu/packages/astronomy.scm
@@ -6039,6 +6039,67 @@ (define-public python-viresclient
@url{https://aeolus.services, Aeolus}")
(license license:expat)))
+(define-public python-webbpsf
+ (package
+ (name "python-webbpsf")
+ (version "1.4.0")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (pypi-uri "webbpsf" version))
+ (sha256
+ (base32 "1084vbk2q3kybxgvh8f2zbsi2w2z8zapsfjkgd6km4yhwqv1wl4a"))))
+ (build-system pyproject-build-system)
+ (arguments
+ (list
+ #:test-flags
+ #~(list "--numprocesses" "auto"
+ "-k" (string-append
+ ;; Test requiring network access
+ "not test_monthly_trending_plot_auto_opdtable"
+ " and not test_monthly_trending_plot_opdtable_param"
+ " and not test_delta_wfe_around_time"))
+ #:phases
+ #~(modify-phases %standard-phases
+ (add-before 'check 'set-env
+ (lambda _
+ (setenv "HOME" "/tmp")
+ (setenv "WEBBPSF_PATH"
+ (string-append #$(this-package-input "webbpsf-data")
+ "/share/webbpsf-data")))))))
+ (propagated-inputs
+ (list python-astropy
+ python-astroquery
+ python-matplotlib
+ python-numpy
+ python-photutils
+ python-poppy
+ python-pysiaf
+ python-scipy
+ python-synphot))
+ (native-inputs
+ (list nss-certs-for-test
+ python-pytest
+ python-pytest-astropy
+ python-pytest-xdist
+ python-setuptools-scm))
+ (inputs
+ (list
+ ;; Requried for installation, see
+ ;; <https://webbpsf.readthedocs.io/en/stable/installation.html>, no
+ ;; licence provided. "To run WebbPSF, you must download these files and
+ ;; tell WebbPSF where to find them using the WEBBPSF_PATH environment
+ ;; variable."
+ webbpsf-data))
+ (home-page "https://webbpsf.readthedocs.io/")
+ (synopsis "James Webb Space Telescope PSF simulation tool")
+ (description
+ "WebbPSF produces simulated PSFs for the James Webb Space Telescope,
+NASA's flagship infrared space telescope. WebbPSF 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-wiimatch
(package
(name "python-wiimatch")
--
2.46.0
- [bug#73399] [PATCH v2 13/25] gnu: python-regularizepsf: Update to 0.4.0., (continued)
- [bug#73399] [PATCH v2 13/25] gnu: python-regularizepsf: Update to 0.4.0., Sharlatan Hellseher, 2024/09/21
- [bug#73399] [PATCH v2 12/25] gnu: Add python-sep-pjw., Sharlatan Hellseher, 2024/09/21
- [bug#73399] [PATCH v2 15/25] gnu: python-stcal: Update to 1.9.0., Sharlatan Hellseher, 2024/09/21
- [bug#73399] [PATCH v2 16/25] gnu: python-stdatamodels: Update to 2.1.0., Sharlatan Hellseher, 2024/09/21
- [bug#73399] [PATCH v2 14/25] gnu: python-sbpy: Update to 0.5.0., Sharlatan Hellseher, 2024/09/21
- [bug#73399] [PATCH v2 17/25] gnu: python-sunpy: Update to 6.0.2., Sharlatan Hellseher, 2024/09/21
- [bug#73399] [PATCH v2 23/25] gnu: Add python-ci-watson., Sharlatan Hellseher, 2024/09/21
- [bug#73399] [PATCH v2 19/25] gnu: Add libsharp., Sharlatan Hellseher, 2024/09/21
- [bug#73399] [PATCH v2 21/25] gnu: Add webbpsf-data., Sharlatan Hellseher, 2024/09/21
- [bug#73399] [PATCH v2 18/25] gnu: Add healpix., Sharlatan Hellseher, 2024/09/21
- [bug#73399] [PATCH v2 22/25] gnu: Add python-webbpsf.,
Sharlatan Hellseher <=
- [bug#73399] [PATCH v2 20/25] gnu: Add healpix-cxx., Sharlatan Hellseher, 2024/09/21
- [bug#73399] [PATCH v2 25/25] gnu: Add python-healpy., Sharlatan Hellseher, 2024/09/21
- [bug#73399] [PATCH v2 24/25] gnu: Add python-pytest-cython., Sharlatan Hellseher, 2024/09/21
- [bug#73399] [PATCH 00/26] Astronomy update 2024/09, Sharlatan Hellseher, 2024/09/30