gnu: python-pyerfa: Fix tests.
* gnu/packages/astronomy.scm (python-pyerfa): Fix tests. [build-system]: Change to pyproject-build-system. [arguments]: Disable a failing test. Add 'build-extensions phase. Signed-off-by: Andreas Enge <andreas@enge.fr>
parent
bc7a8ebcd8
commit
296a157092
|
@ -3255,13 +3255,19 @@ exposures and high-level data products (mosaics, extracted spectra, etc.).")
|
|||
;; Remove bundled submodule library.
|
||||
(delete-file-recursively "liberfa")
|
||||
#t))))
|
||||
(build-system python-build-system)
|
||||
(build-system pyproject-build-system)
|
||||
(arguments
|
||||
`(#:phases
|
||||
`(;; Disable only one failing test:
|
||||
;; AttributeError: __warningregistry__
|
||||
#:test-flags '("-k" "not test_errwarn_reporting")
|
||||
#:phases
|
||||
(modify-phases %standard-phases
|
||||
(add-before 'build 'use-system-liberfa
|
||||
(lambda _
|
||||
(setenv "PYERFA_USE_SYSTEM_LIBERFA" "1"))))))
|
||||
(setenv "PYERFA_USE_SYSTEM_LIBERFA" "1")))
|
||||
(add-before 'check 'build-extensions
|
||||
(lambda _
|
||||
(invoke "python" "setup.py" "build_ext" "--inplace"))))))
|
||||
(native-inputs
|
||||
(list python-pytest-doctestplus python-pytest python-setuptools-scm))
|
||||
(inputs
|
||||
|
|
Reference in New Issue