gnu: python-astropy: Update to 6.0.0.

* gnu/packages/astronomy.scm (python-astropy): Update to 6.0.0.
[arguments] <#:phases>: Adjust 'preparations phase to be compatible with
the new code layout. In 'check phase, silent one more failing test.
[propagated-inputs]: Add python-astropy-iers-data.
[native-inputs]: Remove python-cython; add python-cython-3,
python-matplotlib and python-pytest-mpl.

Change-Id: Id48a7cf05c30c1a1f7799fdc162b910316743f7c
This commit is contained in:
Sharlatan Hellseher 2024-01-27 12:47:02 +00:00
parent bf2633a065
commit e8c1c87c34
No known key found for this signature in database
GPG Key ID: 76D727BFF62CD2B5
1 changed files with 14 additions and 14 deletions

View File

@ -1478,13 +1478,13 @@ accurately in real time at any rate desired.")
(define-public python-astropy (define-public python-astropy
(package (package
(name "python-astropy") (name "python-astropy")
(version "5.3.4") (version "6.0.0")
(source (source
(origin (origin
(method url-fetch) (method url-fetch)
(uri (pypi-uri "astropy" version)) (uri (pypi-uri "astropy" version))
(sha256 (sha256
(base32 "1n7iwvjari4xv37094cpiapmjhhm57b04hi4r40wqb5czbigg46l")) (base32 "1nbpqx7ibm8zsyyy17y5rmfjamwz6mv0sy4drlisap9hald81k83"))
(modules '((guix build utils))) (modules '((guix build utils)))
(snippet (snippet
'(begin '(begin
@ -1508,16 +1508,11 @@ accurately in real time at any rate desired.")
;; Some tests require a writable home. ;; Some tests require a writable home.
(setenv "HOME" "/tmp") (setenv "HOME" "/tmp")
;; Relax xfail tests. ;; Relax xfail tests.
(substitute* "setup.cfg" (substitute* "pyproject.toml"
(("xfail_strict = true") "xfail_strict = false")) (("xfail_strict = true") "xfail_strict = false"))
;; Replace all references to external ply. ;; Replace reference to external ply.
(let ((ply-files '("coordinates/angle_formats.py" (substitute* "astropy/utils/parsing.py"
"utils/parsing.py"))) (("astropy.extern.ply") "ply"))
(with-directory-excursion "astropy"
(map (lambda (file)
(substitute* file (("astropy.extern.ply")
"ply")))
ply-files)))
;; Replace reference to external configobj. ;; Replace reference to external configobj.
(with-directory-excursion "astropy/config" (with-directory-excursion "astropy/config"
(substitute* "configuration.py" (substitute* "configuration.py"
@ -1541,22 +1536,26 @@ accurately in real time at any rate desired.")
" and not test_ignore_sigint" " and not test_ignore_sigint"
" and not test_parquet_filter" " and not test_parquet_filter"
;; See https://github.com/astropy/astropy/issues/15537 ;; See https://github.com/astropy/astropy/issues/15537
" and not test_pvstar")))))))) " and not test_pvstar"
;; E ModuleNotFoundError: No module named 'wofz'
" and not test_pickle_functional"))))))))
(native-inputs (native-inputs
(list pkg-config (list pkg-config
python-colorlog python-colorlog
python-coverage python-coverage
python-cython python-cython-3
python-extension-helpers python-extension-helpers
python-h5py python-h5py
python-ipython python-ipython
python-jplephem python-jplephem
python-matplotlib
python-objgraph python-objgraph
python-pandas python-pandas
python-pyarrow python-pyarrow
python-pytest python-pytest
python-pytest-astropy python-pytest-astropy
python-pytest-astropy-header python-pytest-astropy-header
python-pytest-mpl
python-pytest-xdist python-pytest-xdist
python-scikit-image python-scikit-image
python-scipy python-scipy
@ -1567,7 +1566,8 @@ accurately in real time at any rate desired.")
(inputs (inputs
(list expat wcslib)) (list expat wcslib))
(propagated-inputs (propagated-inputs
(list python-configobj (list python-astropy-iers-data
python-configobj
python-numpy python-numpy
python-packaging python-packaging
python-ply python-ply