mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-11-07 23:46:13 -05:00
gnu: Add python-astroquery.
* gnu/packages/astronomy.scm (python-astroquery): New variable. Signed-off-by: Ludovic Courtès <ludo@gnu.org>
This commit is contained in:
parent
b28be25070
commit
4eca8c6afe
1 changed files with 44 additions and 0 deletions
|
@ -706,6 +706,50 @@ (define-public python-astropy
|
|||
astronomy and astrophysics.")
|
||||
(license license:bsd-3)))
|
||||
|
||||
(define-public python-astroquery
|
||||
(package
|
||||
(name "python-astroquery")
|
||||
(version "0.4.5")
|
||||
(source
|
||||
(origin
|
||||
(method url-fetch)
|
||||
(uri (pypi-uri "astroquery" version))
|
||||
(sha256
|
||||
(base32 "06xy0qzqmps6z5vwfkh5fkhr151p7g94r2j0mvp1rc8zns22y010"))))
|
||||
(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")))))))
|
||||
(propagated-inputs
|
||||
(list python-astropy
|
||||
python-beautifulsoup4
|
||||
python-html5lib
|
||||
python-keyring
|
||||
python-numpy
|
||||
python-pyvo
|
||||
python-requests))
|
||||
(native-inputs
|
||||
(list python-flask
|
||||
python-jinja2
|
||||
python-matplotlib
|
||||
python-pytest-astropy
|
||||
python-pytest-dependency))
|
||||
(home-page "https://www.astropy.org/astroquery/")
|
||||
(synopsis "Access online astronomical data resources")
|
||||
(description "Astroquery is a package that contains a collection of tools
|
||||
to access online Astronomical data. Each web service has its own sub-package.")
|
||||
(license license:bsd-3)))
|
||||
|
||||
(define-public python-pyvo
|
||||
(package
|
||||
(name "python-pyvo")
|
||||
|
|
Loading…
Reference in a new issue