mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-12-26 14:28:15 -05:00
gnu: python-poliastro: Improve package style.
* gnu/package/astronomy.scm (python-poliastro): Improve package style. [arguments]: Swap to use {test-flags} and standard {check} phase. Change-Id: I0dde01af97adc883e8a3ce82a8448f4d10fdab64 Signed-off-by: Eric Bavier <bavier@posteo.net>
This commit is contained in:
parent
7a4c272619
commit
ba3a3aa311
1 changed files with 11 additions and 16 deletions
|
@ -2118,27 +2118,22 @@ (define-public python-poliastro
|
|||
(build-system pyproject-build-system)
|
||||
(arguments
|
||||
(list
|
||||
#:test-flags
|
||||
#~(list "-m" "not remote_data"
|
||||
;; TODO: Review failing tests later when any upstream
|
||||
;; suggestions are provided:
|
||||
;; https://github.com/poliastro/poliastro/issues/1618
|
||||
"-k" (string-append "not test_czml_add_trajectory"
|
||||
" and not test_czml_custom_packet"
|
||||
" and not test_czml_ground_station"
|
||||
" and not test_czml_groundtrack"
|
||||
" and not test_czml_preamble"))
|
||||
#:phases
|
||||
#~(modify-phases %standard-phases
|
||||
;; NOTE: Tests take about 7-10 minutes to pass.
|
||||
(add-before 'check 'prepare-test-environment
|
||||
(lambda _
|
||||
(setenv "HOME" "/tmp")
|
||||
;; TODO: Review failing tests later when any upstream
|
||||
;; suggestions are provided:
|
||||
;; https://github.com/poliastro/poliastro/issues/1618
|
||||
(substitute* "tests/test_czml.py"
|
||||
(("def test_czml_add_trajectory") "def __off_test_czml_add_trajectory")
|
||||
(("def test_czml_custom_packet") "def __off_test_czml_custom_packet")
|
||||
(("def test_czml_ground_station") "def __off_test_czml_ground_station")
|
||||
(("def test_czml_groundtrack") "def __off_test_czml_groundtrack")
|
||||
(("def test_czml_preamble") "def __off_test_czml_preamble"))))
|
||||
(replace 'check
|
||||
(lambda* (#:key tests? #:allow-other-keys)
|
||||
(when tests?
|
||||
(invoke "python" "-m" "pytest"
|
||||
;; Skip tests that need remote data.
|
||||
"-m" "not remote_data")))))))
|
||||
(setenv "HOME" "/tmp"))))))
|
||||
(native-inputs
|
||||
(list python-coverage
|
||||
python-hypothesis
|
||||
|
|
Loading…
Reference in a new issue