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