Archived
1
0
Fork 0

gnu: python-pyerfa: Use G-expressions.

* gnu/packages/astronomy.scm (python-pyerfa): Use G-expressions.
[snippet]: Remove trailing #t.

Signed-off-by: Andreas Enge <andreas@enge.fr>
This commit is contained in:
Sharlatan Hellseher 2023-07-27 00:15:42 +01:00 committed by Andreas Enge
parent 296a157092
commit dc3c9ddc08
No known key found for this signature in database
GPG key ID: F7D5C9BF765C61E3

View file

@ -3251,23 +3251,23 @@ exposures and high-level data products (mosaics, extracted spectra, etc.).")
(base32 "0f8zykzxjsiwv5ibdn5asla2ng2xl0xdkrcrrd61j31mb3xbnzyp"))
(modules '((guix build utils)))
(snippet
'(begin
;; Remove bundled submodule library.
(delete-file-recursively "liberfa")
#t))))
#~(begin
;; Remove bundled submodule library.
(delete-file-recursively "liberfa")))))
(build-system pyproject-build-system)
(arguments
`(;; 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")))
(add-before 'check 'build-extensions
(lambda _
(invoke "python" "setup.py" "build_ext" "--inplace"))))))
(list
;; Disable only one failing test:
;; AttributeError: __warningregistry__
#:test-flags #~(list "-k" "not test_errwarn_reporting")
#:phases
#~(modify-phases %standard-phases
(add-before 'build 'use-system-liberfa
(lambda _
(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