mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-12-26 22:38:07 -05:00
gnu: python-skyfield: Enable tests.
* gnu/packages/astronomy.scm (python-skyfield): Enable tests. [source]: Swap to git checkout containing test data. [build-system]: Swap to pyproject-build-system. [native-inputs]: Add python-assay and python-pandas. Change-Id: Ia4604ab2e44860dcf1294688639d3c54881f8d8c
This commit is contained in:
parent
fbece5a8e0
commit
ee75a0c0d8
1 changed files with 19 additions and 7 deletions
|
@ -5050,15 +5050,27 @@ (define-public python-skyfield
|
|||
(version "1.48")
|
||||
(source
|
||||
(origin
|
||||
(method url-fetch)
|
||||
(uri (pypi-uri "skyfield" version))
|
||||
(method git-fetch) ; PyPI tarball lacks test data
|
||||
(uri (git-reference
|
||||
(url "https://github.com/skyfielders/python-skyfield")
|
||||
(commit version)))
|
||||
(file-name (git-file-name name version))
|
||||
(sha256
|
||||
(base32 "1qaz0k0lkni3y423r66mkvj99bx08qa9xgqp3cs2df70cmdz30cb"))))
|
||||
(build-system python-build-system)
|
||||
(base32 "0l324r4pz7d5w72c7c5akvjx40287hl7sl0qv7swvn2da53vmq0r"))))
|
||||
(build-system pyproject-build-system)
|
||||
(arguments
|
||||
;; XXX: Tests depend on custom test framework
|
||||
;; https://github.com/brandon-rhodes/assay
|
||||
`(#:tests? #f))
|
||||
(list
|
||||
#:test-flags
|
||||
#~(list "-m" "assay" "--batch" "skyfield.tests")
|
||||
#:phases
|
||||
#~(modify-phases %standard-phases
|
||||
(replace 'check
|
||||
(lambda* (#:key tests? test-flags #:allow-other-keys)
|
||||
(when tests?
|
||||
(with-directory-excursion "ci"
|
||||
(apply invoke "python" test-flags))))))))
|
||||
(native-inputs
|
||||
(list python-assay python-pandas))
|
||||
(propagated-inputs
|
||||
(list python-certifi
|
||||
python-jplephem
|
||||
|
|
Loading…
Reference in a new issue