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,26 +4619,31 @@ milliarcsecond).")
(package (package
(name "python-jwst") (name "python-jwst")
(version "1.17.1") (version "1.17.1")
(source (origin (source
(method url-fetch) (origin
(uri (pypi-uri "jwst" version)) (method url-fetch)
(sha256 (uri (pypi-uri "jwst" version))
(base32 (sha256
"0brlj2w0jjg9p4zwna05bk9l8nb7xkcss7p5rjdjaj3hxlskzfkq")) (base32
(modules '((guix build utils))) "0brlj2w0jjg9p4zwna05bk9l8nb7xkcss7p5rjdjaj3hxlskzfkq"))
(snippet (modules '((guix build utils)))
'(begin (snippet
;; Replace reference to external configobj. #~(begin
(substitute* (find-files "." "\\.py$") ;; Replace reference to external configobj.
(("from astropy.extern import configobj") "import configobj") (substitute* (find-files "." "\\.py$")
(("from astropy.extern.configobj import validate") "import validate") (("from astropy.extern import configobj")
(("from astropy.extern.configobj.configobj import ") "from configobj import ") "import configobj")
(("from astropy.extern.configobj.validate import ") "from validate import ")))))) (("from astropy.extern.configobj import validate")
"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,59 +4659,59 @@ 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 = .*") "")))))))
;; opencv provides OpenCV-Python which is Listed as install requirement. (native-inputs
(propagated-inputs (list opencv (list python-colorama
python-asdf python-pytest
python-asdf-astropy python-pytest-cov
python-astropy python-pytest-doctestplus
python-bayesicfitting python-pytest-openfiles
python-crds python-requests-mock
python-drizzle python-setuptools
python-gwcs python-setuptools-scm
python-importlib-metadata python-wheel))
python-jplephem (propagated-inputs
python-jsonschema ;; opencv provides OpenCV-Python which is Listed as install requirement.
python-numpy (list opencv
python-packaging python-asdf
python-photutils python-asdf-astropy
python-poppy python-astropy
python-psutil python-bayesicfitting
python-pyparsing python-crds
python-pysiaf python-drizzle
python-requests python-gwcs
python-scikit-image python-importlib-metadata
python-scipy python-jplephem
python-spherical-geometry python-jsonschema
python-stcal python-numpy
python-stdatamodels python-packaging
python-stpipe python-photutils
python-stsci-imagestats python-poppy
python-synphot python-psutil
python-tweakwcs python-pyparsing
python-wiimatch)) python-pysiaf
(native-inputs (list python-colorama python-requests
python-pytest python-scikit-image
python-pytest-cov python-scipy
python-pytest-doctestplus python-spherical-geometry
python-pytest-openfiles python-stcal
python-requests-mock python-stdatamodels
;; python-ruff ; not packed yet in Guix python-stpipe
python-setuptools python-stsci-imagestats
python-setuptools-scm python-synphot
python-wheel)) python-tweakwcs
python-wiimatch))
(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