gnu: python-asdf: Update to 3.0.0.

* gnu/packages/astronomy.scm (python-asdf-3.0): New variable, migrated
from python-asdf.
[arguments]: Move it from here ...
[native-inputs]: Remove python-astronomy, python-pytest-openfiles.
[propagated-inputs]: Add python-attrs. Remove
python-importlib-resources, python-jsonschema.

(python-asdf-2.15): New variable. Inherited from python-asdf-3.0.
[arguments]: ... to here.

(python-asdf): Set it to use python-asdf-2.15 as 3.0.0 includes some
breaking changes which may not testes in dependent projects.

Signed-off-by: Christopher Baines <mail@cbaines.net>
This commit is contained in:
Sharlatan Hellseher 2023-10-27 23:15:02 +01:00 committed by Christopher Baines
parent 9f06cf2ed8
commit 7995a474ea
No known key found for this signature in database
GPG key ID: 5E28A33B0B84F577

View file

@ -3769,32 +3769,23 @@ (define-public python-tweakwcs
@code{FITS WCS} and @code{JWST gWCS} are supported.") @code{FITS WCS} and @code{JWST gWCS} are supported.")
(license license:bsd-3))) (license license:bsd-3)))
(define-public python-asdf (define-public python-asdf-3.0
(package (package
(name "python-asdf") (name "python-asdf")
(version "2.15.0") (version "3.0.0")
(source (source
(origin (origin
(method url-fetch) (method url-fetch)
(uri (pypi-uri "asdf" version)) (uri (pypi-uri "asdf" version))
(sha256 (sha256
(base32 "11s56797l5330kkhppkyz0bsvms016knmyswj4gx91zrxf8iqvv8")))) (base32 "1a6lf75q9w8fsyq3hn6a7fyldkkyqxddlq21fwdfjwij40dzh3s8"))))
(build-system pyproject-build-system) (build-system pyproject-build-system)
(arguments
(list #:test-flags
#~(list "-k" (string-append
"not test_overwrite"
" and not test_tagging_scalars"
" and not test_info_command"
" and not test_array_inline_threshold_recursive"))))
(native-inputs (native-inputs
(list python-astropy (list python-fsspec
python-fsspec
python-packaging python-packaging
python-psutil python-psutil
python-pytest python-pytest
python-pytest-doctestplus python-pytest-doctestplus
python-pytest-openfiles
python-pytest-remotedata python-pytest-remotedata
python-semantic-version python-semantic-version
python-setuptools-scm)) python-setuptools-scm))
@ -3802,10 +3793,9 @@ (define-public python-asdf
(list python-asdf-standard (list python-asdf-standard
python-asdf-transform-schemas python-asdf-transform-schemas
python-asdf-unit-schemas python-asdf-unit-schemas
python-attrs ;; for vendorized jsonschema
python-importlib-metadata python-importlib-metadata
python-importlib-resources
python-jmespath python-jmespath
python-jsonschema
python-lz4 python-lz4
python-numpy python-numpy
python-pyyaml)) python-pyyaml))
@ -3817,6 +3807,34 @@ (define-public python-asdf
implementation of the ASDF Standard.") implementation of the ASDF Standard.")
(license license:bsd-3))) (license license:bsd-3)))
(define-public python-asdf-2.15
(package
(inherit python-asdf-3.0)
(version "2.15.0")
(source
(origin
(method url-fetch)
(uri (pypi-uri "asdf" version))
(sha256
(base32 "11s56797l5330kkhppkyz0bsvms016knmyswj4gx91zrxf8iqvv8"))))
(arguments
(list #:test-flags
#~(list "-k" (string-append
"not test_overwrite"
" and not test_tagging_scalars"
" and not test_info_command"
" and not test_array_inline_threshold_recursive"))))
(native-inputs
(modify-inputs (package-native-inputs python-asdf-3.0)
(prepend python-astropy python-pytest-openfiles)))
(propagated-inputs
(modify-inputs (package-propagated-inputs python-asdf-3.0)
(prepend python-jsonschema python-importlib-resources)))))
(define-public python-asdf
;; Default version of ASDF..
python-asdf-2.15)
(define-public python-asdf-standard (define-public python-asdf-standard
(package (package
(name "python-asdf-standard") (name "python-asdf-standard")