gnu: python-astroquery: Use G-Expressions.

* gnu/packages/astronomy.scm (python-astroquery)[arguments]: Use
G-Expressions.

Signed-off-by: Vinicius Monego <monego@posteo.net>
This commit is contained in:
Sharlatan Hellseher 2023-05-24 22:51:46 +01:00 committed by Vinicius Monego
parent 3c17950aff
commit d6e587e11d
No known key found for this signature in database
GPG key ID: 637B0B138065B68A

View file

@ -1280,18 +1280,17 @@ (define-public python-astroquery
(base32 "1vhkzsqlgn3ji5by2rdf2gwklhbyzvpzb1iglalhqjkkrdaaaz1h"))))
(build-system python-build-system)
(arguments
`(#:phases
(modify-phases %standard-phases
(add-before 'check 'writable-home
(lambda _ ; some tests need a writable home
(setenv "HOME" (getcwd))))
(replace 'check
(lambda* (#:key inputs outputs tests? #:allow-other-keys)
(when tests?
(add-installed-pythonpath inputs outputs)
(invoke "python" "-m" "pytest" "--pyargs" "astroquery"
;; Skip tests that require online data.
"-m" "not remote_data")))))))
(list #:phases
#~(modify-phases %standard-phases
(add-before 'check 'writable-home
(lambda _ ; some tests need a writable home
(setenv "HOME" (getcwd))))
(replace 'check
(lambda* (#:key tests? #:allow-other-keys)
(when tests?
(invoke "python" "-m" "pytest" "--pyargs" "astroquery"
;; Skip tests that require online data.
"-m" "not remote_data")))))))
(propagated-inputs
(list python-astropy
python-beautifulsoup4