gnu: python-jwst: Refresh package style.

* gnu/packages/astronomy.scm (python-jwst): Fix indentation and order of
fields.
[source] <snippet>: Use G-expressions, fix long lines.
[synopsis]: Simplify.
[description]: Fix fill paragraph indentation.

Change-Id: Iea9c816ff6bc64d2fc65bcb4d42824bdb6815af5
This commit is contained in:
Sharlatan Hellseher 2025-04-21 13:03:02 +01:00
parent b3c6424eb9
commit ef9c58e4f2
No known key found for this signature in database
GPG key ID: 76D727BFF62CD2B5

View file

@ -4619,7 +4619,8 @@ milliarcsecond).")
(package (package
(name "python-jwst") (name "python-jwst")
(version "1.17.1") (version "1.17.1")
(source (origin (source
(origin
(method url-fetch) (method url-fetch)
(uri (pypi-uri "jwst" version)) (uri (pypi-uri "jwst" version))
(sha256 (sha256
@ -4627,18 +4628,22 @@ milliarcsecond).")
"0brlj2w0jjg9p4zwna05bk9l8nb7xkcss7p5rjdjaj3hxlskzfkq")) "0brlj2w0jjg9p4zwna05bk9l8nb7xkcss7p5rjdjaj3hxlskzfkq"))
(modules '((guix build utils))) (modules '((guix build utils)))
(snippet (snippet
'(begin #~(begin
;; Replace reference to external configobj. ;; Replace reference to external configobj.
(substitute* (find-files "." "\\.py$") (substitute* (find-files "." "\\.py$")
(("from astropy.extern import configobj") "import configobj") (("from astropy.extern import configobj")
(("from astropy.extern.configobj import validate") "import validate") "import configobj")
(("from astropy.extern.configobj.configobj import ") "from configobj import ") (("from astropy.extern.configobj import validate")
(("from astropy.extern.configobj.validate import ") "from validate import ")))))) "import validate")
(("from astropy.extern.configobj.configobj import ")
"from configobj import ")
(("from astropy.extern.configobj.validate import ")
"from validate import "))))))
(build-system pyproject-build-system) (build-system pyproject-build-system)
(arguments (arguments
(list (list
;; XXX: Tests require access to https://jwst-crds-pub.stsci.edu server for ;; XXX: Tests require access to https://jwst-crds-pub.stsci.edu server
;; getting data sets. ;; for getting data sets.
#:tests? #f #:tests? #f
#:phases #:phases
#~(modify-phases %standard-phases #~(modify-phases %standard-phases
@ -4654,13 +4659,23 @@ milliarcsecond).")
;; XXX: Can't detect opencv-python version. The input opencv ;; XXX: Can't detect opencv-python version. The input opencv
;; might not set the version correctly. ;; might not set the version correctly.
((".*opencv-python-headless.*") "") ((".*opencv-python-headless.*") "")
;; jwst.csv_tools was removed. ;; Remove broken scripts, see
;; <https://github.com/spacetelescope/jwst/issues/9401>.
(("csvconvert = .*") "") (("csvconvert = .*") "")
;; ImportError: module 'jwst.scripts.asn_gather' has no
;; attribute 'main'
(("asn_gather = .*") ""))))))) (("asn_gather = .*") "")))))))
(native-inputs
(list python-colorama
python-pytest
python-pytest-cov
python-pytest-doctestplus
python-pytest-openfiles
python-requests-mock
python-setuptools
python-setuptools-scm
python-wheel))
(propagated-inputs
;; opencv provides OpenCV-Python which is Listed as install requirement. ;; opencv provides OpenCV-Python which is Listed as install requirement.
(propagated-inputs (list opencv (list opencv
python-asdf python-asdf
python-asdf-astropy python-asdf-astropy
python-astropy python-astropy
@ -4689,24 +4704,14 @@ milliarcsecond).")
python-synphot python-synphot
python-tweakwcs python-tweakwcs
python-wiimatch)) python-wiimatch))
(native-inputs (list python-colorama
python-pytest
python-pytest-cov
python-pytest-doctestplus
python-pytest-openfiles
python-requests-mock
;; python-ruff ; not packed yet in Guix
python-setuptools
python-setuptools-scm
python-wheel))
(home-page "https://jwst-pipeline.readthedocs.io/en/latest/") (home-page "https://jwst-pipeline.readthedocs.io/en/latest/")
(synopsis (synopsis "Science observations from the James Webb Space Telescope")
"Python library for science observations from the James Webb Space Telescope")
(description (description
"This package provides an access to the JWST Science Calibration Pipeline "This package provides an access to the JWST Science Calibration Pipeline
processes data from all JWST instruments and observing modes by applying various processes data from all JWST instruments and observing modes by applying
science corrections sequentially, producing both fully-calibrated individual various science corrections sequentially, producing both fully-calibrated
exposures and high-level data products (mosaics, extracted spectra, etc.).") individual exposures and high-level data products (mosaics, extracted spectra,
etc.).")
(license license:bsd-3))) (license license:bsd-3)))
(define-public python-jwst-reffiles (define-public python-jwst-reffiles