mirror of
https://git.savannah.gnu.org/git/guix.git
synced 2025-01-31 06:46:50 +01:00
gnu: python-specutils: Fix build.
* gnu/packages/astronomy.scm (python-specutils): [arguments] <test-flags>: Skip one more test. <phases>: Remove 'relax-requirements. Change-Id: Iba3837d8d87ece1e97f954ffb20afdbfd6e05654
This commit is contained in:
parent
621b2cee60
commit
8fe36b77e0
1 changed files with 13 additions and 11 deletions
|
@ -4952,25 +4952,27 @@ (define-public python-specutils
|
|||
(build-system pyproject-build-system)
|
||||
(arguments
|
||||
(list
|
||||
;; Disabling test requiring access to download
|
||||
;; <https://datacenter.iers.org/data/9/finals2000A.all>.
|
||||
;; XXX: Check if test data may be packed as standalone package.
|
||||
#:test-flags #~(list "-k" "not test_create_spectral_axis")
|
||||
#:test-flags
|
||||
#~(list "-k" (string-join
|
||||
(list
|
||||
;; Disabling test requiring access to download
|
||||
;; <https://datacenter.iers.org/data/9/finals2000A.all>.
|
||||
;; XXX: Check if test data may be packed as standalone
|
||||
;; package.
|
||||
"not test_create_spectral_axis"
|
||||
;; ValueError: Expected the following order of world
|
||||
;; arguments: SpectralCoord
|
||||
"test_wcs_transformations")
|
||||
" and not "))
|
||||
#:phases
|
||||
#~(modify-phases %standard-phases
|
||||
(add-after 'unpack 'relax-requirements
|
||||
(lambda _
|
||||
(substitute* "setup.cfg"
|
||||
;; numpy>=1.24
|
||||
(("1.24") "1.23.2"))))
|
||||
(add-before 'check 'set-home-env
|
||||
(lambda _
|
||||
;; Tests require HOME to be set.
|
||||
;; Permission denied: '/homeless-shelter'
|
||||
(setenv "HOME" "/tmp"))))))
|
||||
(propagated-inputs
|
||||
(list ;; python-stdatamodels ; cycle with python-synphot, optional.
|
||||
python-asdf
|
||||
(list python-asdf
|
||||
python-asdf-astropy
|
||||
python-astropy
|
||||
python-gwcs
|
||||
|
|
Loading…
Reference in a new issue