mirror of
https://git.savannah.gnu.org/git/guix.git
synced 2025-02-07 19:39:34 +01:00
gnu: python-jplephem: Improve package style.
* gnu/packages/astronomy.scm (python-jplephem)[build-system]: Shift to pyproject-build-system. [arguments]: Use G-expressions. Simplify 'check phase. [description]: Extend it with more details. Signed-off-by: Christopher Baines <mail@cbaines.net>
This commit is contained in:
parent
df3a912498
commit
8647a2d4b1
1 changed files with 13 additions and 12 deletions
|
@ -3238,24 +3238,25 @@ Moon position, etc.")
|
||||||
(uri (pypi-uri "jplephem" version))
|
(uri (pypi-uri "jplephem" version))
|
||||||
(sha256
|
(sha256
|
||||||
(base32 "1kvdzwyh0invinvcnwfr14r9zbqzcwkdh0cpzw1m4vkdcm64aqn1"))))
|
(base32 "1kvdzwyh0invinvcnwfr14r9zbqzcwkdh0cpzw1m4vkdcm64aqn1"))))
|
||||||
(build-system python-build-system)
|
(build-system pyproject-build-system)
|
||||||
(arguments
|
(arguments
|
||||||
`(#:phases
|
(list
|
||||||
(modify-phases %standard-phases
|
#:phases
|
||||||
|
#~(modify-phases %standard-phases
|
||||||
(replace 'check
|
(replace 'check
|
||||||
(lambda* (#:key tests? inputs outputs #:allow-other-keys)
|
(lambda* (#:key tests? #:allow-other-keys)
|
||||||
(when tests?
|
(when tests?
|
||||||
(let ((out (assoc-ref outputs "out")))
|
(invoke "python" "-m" "unittest" "discover" "-s" "test")))))))
|
||||||
(add-installed-pythonpath inputs outputs)
|
|
||||||
(setenv "PATH" (string-append out "/bin:" (getenv "PATH")))
|
|
||||||
(invoke "python" "-m" "unittest" "discover" "-s" "test"))))))))
|
|
||||||
(inputs
|
(inputs
|
||||||
(list python-numpy))
|
(list python-numpy))
|
||||||
(home-page "https://github.com/brandon-rhodes/python-jplephem")
|
(home-page "https://github.com/brandon-rhodes/python-jplephem")
|
||||||
(synopsis "Python version of NASA DE4xx ephemerides")
|
(synopsis "Python version of NASA DE4xx ephemerides")
|
||||||
(description
|
(description
|
||||||
"The package is a Python implementation of the mathematics that standard
|
"@code{skyfield} computes positions for the stars, planets, and
|
||||||
JPL ephemerides use to predict raw (x,y,z) planetary positions.")
|
satellites in orbit around the Earth. Its results should agree with the
|
||||||
|
positions generated by the United States Naval Observatory and their
|
||||||
|
Astronomical Almanac to within 0.0005 arcseconds (half a @emph{mas} or
|
||||||
|
milliarcsecond).")
|
||||||
(license license:expat)))
|
(license license:expat)))
|
||||||
|
|
||||||
(define-public python-jwst
|
(define-public python-jwst
|
||||||
|
|
Loading…
Add table
Reference in a new issue