gnu: packages/astronomy: Adjust inputs.

These changes are cherry picked and squashed from python-team to cover
upcoming updates in pyproject-build-system where setuptools and wheel
are required on build time.

* gnu/packages/astronomy.scm (python-ads, python-asdf-standard,
python-asdf-transform-schemas, python-astrodendro,
python-bayesicfitting, python-casa-formats-io, python-cdflib,
python-cmyt, python-drizzle, python-extinction, python-fitsio,
python-hvpy, python-naima, python-pyavm, python-pyerfa, python-pynbody,
python-pysiaf, python-pysiril, python-pysynphot, python-sgp4,
python-sirilic, python-skyfield, python-soxs, python-spherical-geometry,
python-stsci-image)
[native-inputs]: Add python-setuptools and python-wheel.

(python-jplephem) [inputs]: Remove python-numpy.
[propagated-inputs]: Add python-numpy.
[native-inputs]: Add python-setuptools and python-wheel.

(python-yt): Shift the order of native and propagated inputs, add
missing.
[native-inputs]: Add python-wheel.

(python-yt-astro-analysis): Shift the order of native and propagated
inputs, add missing.
[native-inputs]: Add python-setuptools and python-wheel.

(python-czml3) [native-inputs]: Remove python-astropy; add
python-astropy-minimal, python-setuptools, and python-wheel.

Change-Id: I3e28b2c7b5503741300dc4f15b63ded988570c63
This commit is contained in:
Sharlatan Hellseher 2024-11-05 13:04:56 +00:00
parent e881cc5606
commit 5f275bbab0
No known key found for this signature in database
GPG key ID: 76D727BFF62CD2B5

View file

@ -1509,7 +1509,9 @@ model-fitting photometry or morphological analyses.")
(build-system pyproject-build-system) (build-system pyproject-build-system)
(native-inputs (native-inputs
(list nss-certs-for-test (list nss-certs-for-test
python-httpretty)) python-httpretty
python-setuptools
python-wheel))
(propagated-inputs (propagated-inputs
(list python-mock (list python-mock
python-requests python-requests
@ -1766,7 +1768,9 @@ astronomical images, especially when there is no WCS information available.")
#$(version-major+minor+point version))))))) #$(version-major+minor+point version)))))))
(native-inputs (native-inputs
(list python-pytest (list python-pytest
python-setuptools-scm)) python-setuptools
python-setuptools-scm
python-wheel))
(propagated-inputs (propagated-inputs
(list python-astropy (list python-astropy
python-h5py python-h5py
@ -1860,6 +1864,9 @@ mining in astronomy.")
(lambda* (#:key tests? test-flags #:allow-other-keys) (lambda* (#:key tests? test-flags #:allow-other-keys)
(when tests? (when tests?
(apply invoke "python" test-flags))))))) (apply invoke "python" test-flags)))))))
(native-inputs
(list python-setuptools
python-wheel))
(propagated-inputs (propagated-inputs
(list python-astropy (list python-astropy
python-future python-future
@ -1894,9 +1901,16 @@ Herschel.")
(lambda _ (lambda _
(invoke "python" "setup.py" "build_ext" "--inplace")))))) (invoke "python" "setup.py" "build_ext" "--inplace"))))))
(native-inputs (native-inputs
(list python-pytest python-pytest-cov python-pytest-openfiles)) (list python-pytest
python-pytest-cov
python-pytest-openfiles
python-setuptools
python-wheel))
(propagated-inputs (propagated-inputs
(list python-astropy python-click python-dask python-numpy)) (list python-astropy
python-click
python-dask
python-numpy))
(home-page "https://casa-formats-io.readthedocs.io/") (home-page "https://casa-formats-io.readthedocs.io/")
(synopsis "Dask-based reader for CASA data") (synopsis "Dask-based reader for CASA data")
(description (description
@ -1961,10 +1975,16 @@ lens models possibly obtained from different modeling codes.")
(sha256 (sha256
(base32 "0gsdffn5w7j1aridvmx4xh6axvmbmqjwawacc8fnshpcyh4md5pn")))) (base32 "0gsdffn5w7j1aridvmx4xh6axvmbmqjwawacc8fnshpcyh4md5pn"))))
(build-system pyproject-build-system) (build-system pyproject-build-system)
(propagated-inputs
(list python-attrs python-dateutil python-w3lib))
(native-inputs (native-inputs
(list python-astropy python-pytest python-pytest-mypy)) (list python-astropy-minimal
python-pytest
python-pytest-mypy
python-setuptools
python-wheel))
(propagated-inputs
(list python-attrs
python-dateutil
python-w3lib))
(home-page "https://github.com/poliastro/czml3") (home-page "https://github.com/poliastro/czml3")
(synopsis "Python library to write CZML") (synopsis "Python library to write CZML")
(description (description
@ -2013,8 +2033,13 @@ of dates.")
(arguments (arguments
(list (list
#:test-flags #~(list "test.py"))) #:test-flags #~(list "test.py")))
(native-inputs (list python-cython python-pytest)) (native-inputs
(propagated-inputs (list python-numpy)) (list python-cython
python-pytest
python-setuptools
python-wheel))
(propagated-inputs
(list python-numpy))
(home-page "http://github.com/kbarbary/extinction") (home-page "http://github.com/kbarbary/extinction")
(synopsis "Fast interstellar dust extinction laws") (synopsis "Fast interstellar dust extinction laws")
(description (description
@ -2058,7 +2083,9 @@ exitinction laws found in the literature.")
(lambda _ (lambda _
(invoke "python" "setup.py" "build_ext" "--inplace")))))) (invoke "python" "setup.py" "build_ext" "--inplace"))))))
(native-inputs (native-inputs
(list python-pytest)) (list python-pytest
python-setuptools
python-wheel))
(inputs (inputs
(list curl cfitsio zlib)) (list curl cfitsio zlib))
(propagated-inputs (propagated-inputs
@ -2492,6 +2519,9 @@ position-frequency slice.")
(build-system pyproject-build-system) (build-system pyproject-build-system)
(arguments (arguments
(list #:tests? #f)) ; no tests (list #:tests? #f)) ; no tests
(native-inputs
(list python-setuptools
python-wheel))
(home-page "https://siril.org/tutorials/pysiril/") (home-page "https://siril.org/tutorials/pysiril/")
(synopsis "Python interface to SiriL") (synopsis "Python interface to SiriL")
(description (description
@ -2571,7 +2601,9 @@ end products of specific X-ray observatories.")
(arguments (arguments
(list #:tests? #f)) ; no tests (list #:tests? #f)) ; no tests
(native-inputs (native-inputs
(list nss-certs-for-test)) (list nss-certs-for-test
python-setuptools
python-wheel))
(propagated-inputs (propagated-inputs
(list python-requests (list python-requests
python-wxpython)) python-wxpython))
@ -2692,6 +2724,11 @@ to make such analysis both as flexible and clear as possible.")
;; To address sanity check warning: UserWarning: unable to write ;; To address sanity check warning: UserWarning: unable to write
;; new config file. ;; new config file.
(setenv "HOME" "/tmp")))))) (setenv "HOME" "/tmp"))))))
(native-inputs
(list python-cython
python-setuptools
python-setuptools-scm
python-wheel))
(propagated-inputs (propagated-inputs
(list python-appdirs (list python-appdirs
python-astropy python-astropy
@ -2702,9 +2739,6 @@ to make such analysis both as flexible and clear as possible.")
python-regions python-regions
python-scipy python-scipy
python-tqdm)) python-tqdm))
(native-inputs
(list python-cython
python-setuptools-scm))
(home-page "https://hea-www.cfa.harvard.edu/soxs/") (home-page "https://hea-www.cfa.harvard.edu/soxs/")
(synopsis "Simulated Observations of X-ray Sources") (synopsis "Simulated Observations of X-ray Sources")
(description (description
@ -3399,16 +3433,18 @@ bad pixel tracking throughout the reduction process.")
(add-before 'check 'set-home-env (add-before 'check 'set-home-env
(lambda _ (lambda _
(setenv "HOME" (getcwd))))))) (setenv "HOME" (getcwd)))))))
(propagated-inputs
(list python-numpy))
(native-inputs (native-inputs
(list python-astropy (list python-astropy
python-hypothesis python-hypothesis
python-pytest python-pytest
python-pytest-cov python-pytest-cov
python-pytest-remotedata python-pytest-remotedata
python-setuptools
python-setuptools-scm python-setuptools-scm
python-xarray)) python-xarray
python-wheel))
(propagated-inputs
(list python-numpy))
(home-page "https://github.com/MAVENSDC/cdflib") (home-page "https://github.com/MAVENSDC/cdflib")
(synopsis "Python library to deal with NASA's CDF astronmical data format") (synopsis "Python library to deal with NASA's CDF astronmical data format")
(description "This package provides a Python @acronym{CDF, Computable (description "This package provides a Python @acronym{CDF, Computable
@ -3469,9 +3505,14 @@ attempting to maintain ISTP compliance
(base32 "1zabmckr1z637pfqqvlkj0asfqqvx2x92163dby8x0c8yiqgdvjb")))) (base32 "1zabmckr1z637pfqqvlkj0asfqqvx2x92163dby8x0c8yiqgdvjb"))))
(build-system pyproject-build-system) (build-system pyproject-build-system)
(native-inputs (native-inputs
(list python-colorspacious python-pytest python-pytest-mpl)) (list python-colorspacious
python-pytest
python-pytest-mpl
python-setuptools
python-wheel))
(propagated-inputs (propagated-inputs
(list python-matplotlib python-numpy)) (list python-matplotlib
python-numpy))
(home-page "https://yt-project.org/") (home-page "https://yt-project.org/")
(synopsis "Matplotlib colormaps from the yt project") (synopsis "Matplotlib colormaps from the yt project")
(description (description
@ -3578,10 +3619,14 @@ used with local NetDRMS sites.")
(lambda _ (lambda _
;; Cython extensions have to be built before running the tests. ;; Cython extensions have to be built before running the tests.
(invoke "python" "setup.py" "build_ext" "--inplace")))))) (invoke "python" "setup.py" "build_ext" "--inplace"))))))
(propagated-inputs
(list python-astropy python-numpy))
(native-inputs (native-inputs
(list python-pytest python-setuptools-scm)) (list python-pytest
python-setuptools
python-setuptools-scm
python-wheel))
(propagated-inputs
(list python-astropy
python-numpy))
(home-page "https://github.com/spacetelescope/drizzle") (home-page "https://github.com/spacetelescope/drizzle")
(synopsis (synopsis
"Astronomical tool for combining dithered images into a single image") "Astronomical tool for combining dithered images into a single image")
@ -3630,10 +3675,15 @@ implemented using the astropy.modeling framework.")
(build-system pyproject-build-system) (build-system pyproject-build-system)
(arguments (arguments
(list #:tests? #f)) ; Requires HTTP(S) access to api.beta.helioviewer.org (list #:tests? #f)) ; Requires HTTP(S) access to api.beta.helioviewer.org
(propagated-inputs
(list python-pydantic-2 python-pydantic-settings python-requests))
(native-inputs (native-inputs
(list python-pytest python-pytest-astropy)) (list python-pytest
python-pytest-astropy
python-setuptools
python-wheel))
(propagated-inputs
(list python-pydantic-2
python-pydantic-settings
python-requests))
(home-page "https://helioviewer.org/") (home-page "https://helioviewer.org/")
(synopsis "Helioviewer Python API Wrapper") (synopsis "Helioviewer Python API Wrapper")
(description "@code{hvpy} is a Python API wrapper around the formal (description "@code{hvpy} is a Python API wrapper around the formal
@ -3772,6 +3822,11 @@ the easy construction of interactive matplotlib widget based animations.")
(sha256 (sha256
(base32 "1lng2prl2kzzpgrkj11hl53cvqdh0gpk8cdqkvcg08k3bivzk8q8")))) (base32 "1lng2prl2kzzpgrkj11hl53cvqdh0gpk8cdqkvcg08k3bivzk8q8"))))
(build-system pyproject-build-system) (build-system pyproject-build-system)
(native-inputs
(list python-pytest
python-setuptools
python-setuptools-scm
python-wheel))
(propagated-inputs (propagated-inputs
(list python-astropy (list python-astropy
python-corner python-corner
@ -3780,8 +3835,6 @@ the easy construction of interactive matplotlib widget based animations.")
python-matplotlib python-matplotlib
python-pyyaml python-pyyaml
python-scipy)) python-scipy))
(native-inputs
(list python-pytest python-setuptools-scm))
(home-page "http://github.com/zblz/naima") (home-page "http://github.com/zblz/naima")
(synopsis "Derivation of non-thermal particle distributions through MCMC spectral fitting") (synopsis "Derivation of non-thermal particle distributions through MCMC spectral fitting")
(description (description
@ -4079,10 +4132,15 @@ interest, and which require portability between platforms or ease of scripting."
(sha256 (sha256
(base32 "0vgjqvddq4a5lnmg8msm7fwqs3r6fc748xzvnhyvc387h0z8pdxk")))) (base32 "0vgjqvddq4a5lnmg8msm7fwqs3r6fc748xzvnhyvc387h0z8pdxk"))))
(build-system pyproject-build-system) (build-system pyproject-build-system)
(propagated-inputs
(list python-astropy python-numpy))
(native-inputs (native-inputs
(list python-pillow python-pytest python-setuptools-scm)) (list python-pillow
python-pytest
python-setuptools
python-setuptools-scm
python-wheel))
(propagated-inputs
(list python-astropy
python-numpy))
(home-page "https://astrofrog.github.io/pyavm/") (home-page "https://astrofrog.github.io/pyavm/")
(synopsis "Simple pure-python AVM meta-data handling") (synopsis "Simple pure-python AVM meta-data handling")
(description (description
@ -4306,6 +4364,9 @@ changing the pixel resolution, orientation, coordinate system.")
(sha256 (sha256
(base32 "0aalbmldks6ykgkcxwkvnp04q0avhv903m5zwvg8i7zvl99xrbfq")))) (base32 "0aalbmldks6ykgkcxwkvnp04q0avhv903m5zwvg8i7zvl99xrbfq"))))
(build-system pyproject-build-system) (build-system pyproject-build-system)
(native-inputs
(list python-setuptools
python-wheel))
(propagated-inputs (propagated-inputs
(list python-numpy)) (list python-numpy))
(home-page "https://github.com/brandon-rhodes/python-sgp4") (home-page "https://github.com/brandon-rhodes/python-sgp4")
@ -4667,7 +4728,9 @@ python_files = test_*.py"))))))))
(native-inputs (native-inputs
(list python-pytest (list python-pytest
python-pytest-astropy-header python-pytest-astropy-header
python-setuptools-scm)) python-setuptools
python-setuptools-scm
python-wheel))
(inputs (inputs
(list qd)) (list qd))
(propagated-inputs (propagated-inputs
@ -4753,8 +4816,14 @@ and CAS statistics), as well as fitting 2D Sérsic profiles.")
(lambda _ (lambda _
;; Cython extensions have to be built before running the tests. ;; Cython extensions have to be built before running the tests.
(invoke "python" "setup.py" "build_ext" "--inplace")))))) (invoke "python" "setup.py" "build_ext" "--inplace"))))))
(propagated-inputs (list python-numpy python-scipy)) (native-inputs
(native-inputs (list python-pytest python-setuptools-scm)) (list python-pytest
python-setuptools
python-setuptools-scm
python-wheel))
(propagated-inputs
(list python-numpy
python-scipy))
(home-page "https://github.com/spacetelescope/stsci.image") (home-page "https://github.com/spacetelescope/stsci.image")
(synopsis "Image array manipulation functions") (synopsis "Image array manipulation functions")
(description (description
@ -5039,7 +5108,10 @@ packages for HST.")
(lambda* (#:key tests? #:allow-other-keys) (lambda* (#:key tests? #:allow-other-keys)
(when tests? (when tests?
(invoke "python" "-m" "unittest" "discover" "-s" "test"))))))) (invoke "python" "-m" "unittest" "discover" "-s" "test")))))))
(inputs (native-inputs
(list python-setuptools
python-wheel))
(propagated-inputs
(list python-numpy)) (list python-numpy))
(home-page "https://github.com/brandon-rhodes/python-jplephem") (home-page "https://github.com/brandon-rhodes/python-jplephem")
(synopsis "Python version of NASA DE4xx ephemerides") (synopsis "Python version of NASA DE4xx ephemerides")
@ -5203,7 +5275,11 @@ files.")
(lambda _ (lambda _
(invoke "python" "setup.py" "build_ext" "--inplace")))))) (invoke "python" "setup.py" "build_ext" "--inplace"))))))
(native-inputs (native-inputs
(list python-pytest-doctestplus python-pytest python-setuptools-scm)) (list python-pytest-doctestplus
python-pytest
python-setuptools
python-setuptools-scm
python-wheel))
(inputs (inputs
(list erfa)) (list erfa))
(propagated-inputs (propagated-inputs
@ -5290,7 +5366,9 @@ functions, so that they can be called with scalar or array inputs.")
(native-inputs (native-inputs
(list python-cython (list python-cython
python-pandas python-pandas
python-pytest)) python-pytest
python-setuptools
python-wheel))
(propagated-inputs (propagated-inputs
(list python-h5py (list python-h5py
python-matplotlib python-matplotlib
@ -5377,6 +5455,12 @@ Features:
;; <https://github.com/spacetelescope/pysiaf/issues/338> ;; <https://github.com/spacetelescope/pysiaf/issues/338>
"-k" (string-append "not test_write_jwst_siaf_xlsx" "-k" (string-append "not test_write_jwst_siaf_xlsx"
" and not test_write_jwst_siaf_xml" )))) " and not test_write_jwst_siaf_xml" ))))
(native-inputs
(list python-pytest
python-pytest-xdist
python-setuptools
python-setuptools-scm
python-wheel))
(propagated-inputs (propagated-inputs
(list python-astropy (list python-astropy
python-lxml python-lxml
@ -5385,10 +5469,6 @@ Features:
python-openpyxl python-openpyxl
python-requests python-requests
python-scipy)) python-scipy))
(native-inputs
(list python-pytest
python-pytest-xdist
python-setuptools-scm))
(home-page "https://pysiaf.readthedocs.io/") (home-page "https://pysiaf.readthedocs.io/")
(synopsis "Handling SIAF for space telescopes") (synopsis "Handling SIAF for space telescopes")
(description (description
@ -5430,7 +5510,9 @@ comparison, and validation are provided.")
(native-inputs (native-inputs
(list python-pytest (list python-pytest
python-pytest-remotedata python-pytest-remotedata
python-setuptools-scm)) python-setuptools
python-setuptools-scm
python-wheel))
(propagated-inputs (propagated-inputs
(list python-astropy (list python-astropy
python-beautifulsoup4 python-beautifulsoup4
@ -5687,13 +5769,17 @@ support for reading and writing various compression algorithms including:
"--ignore=tests/test_integration.py" "--ignore=tests/test_integration.py"
"--ignore=tests/test_manifests.py" "--ignore=tests/test_manifests.py"
"--ignore=tests/test_yaml_schema.py"))) "--ignore=tests/test_yaml_schema.py")))
(native-inputs (list python-astropy (native-inputs
python-jsonschema (list python-astropy
python-pypa-build python-jsonschema
python-pytest python-pypa-build
python-packaging python-pytest
python-setuptools-scm)) python-packaging
(propagated-inputs (list python-importlib-resources)) python-setuptools
python-setuptools-scm
python-wheel))
(propagated-inputs
(list python-importlib-resources))
(home-page "https://asdf-standard.readthedocs.io/") (home-page "https://asdf-standard.readthedocs.io/")
(synopsis "ASDF standard schemas") (synopsis "ASDF standard schemas")
(description (description
@ -5720,8 +5806,13 @@ up-front for extensibility.")
(arguments (arguments
;; Dependency cycle with python-asdf ;; Dependency cycle with python-asdf
(list #:tests? #f)) (list #:tests? #f))
(native-inputs (list python-setuptools-scm)) (native-inputs
(propagated-inputs (list python-asdf-standard python-importlib-resources)) (list python-setuptools
python-setuptools-scm
python-wheel))
(propagated-inputs
(list python-asdf-standard
python-importlib-resources))
(home-page "https://github.com/asdf-format/asdf-transform-schemas") (home-page "https://github.com/asdf-format/asdf-transform-schemas")
(synopsis "ASDF schemas for transforms") (synopsis "ASDF schemas for transforms")
(description (description
@ -6107,7 +6198,9 @@ pipelines.")
(native-inputs (native-inputs
(list nss-certs-for-test (list nss-certs-for-test
python-assay python-assay
python-pandas)) python-pandas
python-setuptools
python-wheel))
(propagated-inputs (propagated-inputs
(list python-certifi (list python-certifi
python-jplephem python-jplephem
@ -6290,7 +6383,7 @@ using (multivariate) polynomials.")
(list (list
#:build-backend "setuptools.build_meta" #:build-backend "setuptools.build_meta"
#:test-flags #:test-flags
#~(list "-n" "auto") #~(list "--numprocesses" "auto")
#:phases #:phases
#~(modify-phases %standard-phases #~(modify-phases %standard-phases
(add-after 'unpack 'relax-requirements (add-after 'unpack 'relax-requirements
@ -6305,6 +6398,18 @@ using (multivariate) polynomials.")
(lambda _ (lambda _
(setenv "HOME" "/tmp") (setenv "HOME" "/tmp")
(invoke "python" "setup.py" "build_ext" "--inplace")))))) (invoke "python" "setup.py" "build_ext" "--inplace"))))))
(native-inputs
(list python-cython-3
python-nose
python-nose-exclude
python-nose-timer
python-pyaml
python-pytest
python-pytest-mpl
python-pytest-xdist
python-setuptools
python-sympy
python-wheel))
(propagated-inputs (propagated-inputs
(list python-cmyt (list python-cmyt
python-ewah-bool-utils python-ewah-bool-utils
@ -6317,17 +6422,6 @@ using (multivariate) polynomials.")
python-tomli-w python-tomli-w
python-tqdm python-tqdm
python-unyt)) python-unyt))
(native-inputs
(list python-cython-3
python-nose
python-nose-exclude
python-nose-timer
python-pyaml
python-pytest
python-pytest-mpl
python-pytest-xdist
python-setuptools
python-sympy))
(home-page "http://yt-project.org/") (home-page "http://yt-project.org/")
(synopsis "Analyzing and visualizing volumetric data framework") (synopsis "Analyzing and visualizing volumetric data framework")
(description (description
@ -6374,15 +6468,17 @@ using (multivariate) polynomials.")
(add-before 'check 'build-extensions (add-before 'check 'build-extensions
(lambda _ (lambda _
(invoke "python" "setup.py" "build_ext" "--inplace")))))) (invoke "python" "setup.py" "build_ext" "--inplace"))))))
(native-inputs
(list python-cython
python-nose
python-tomli
python-setuptools
python-wheel))
(propagated-inputs (propagated-inputs
(list python-h5py (list python-h5py
python-numpy python-numpy
python-packaging python-packaging
python-yt)) python-yt))
(native-inputs
(list python-cython
python-nose
python-tomli))
(home-page "https://github.com/yt-project/yt_astro_analysis") (home-page "https://github.com/yt-project/yt_astro_analysis")
(synopsis "YT astrophysical analysis modules") (synopsis "YT astrophysical analysis modules")
(description (description