[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
05/08: gnu: Add python-astroquery.
From: |
guix-commits |
Subject: |
05/08: gnu: Add python-astroquery. |
Date: |
Tue, 25 Jan 2022 17:56:53 -0500 (EST) |
civodul pushed a commit to branch master
in repository guix.
commit 4eca8c6afe39bfb65810dff831f3711db52f2354
Author: Vinicius Monego <monego@posteo.net>
AuthorDate: Sun Jan 9 04:37:23 2022 +0000
gnu: Add python-astroquery.
* gnu/packages/astronomy.scm (python-astroquery): New variable.
Signed-off-by: Ludovic Courtès <ludo@gnu.org>
---
gnu/packages/astronomy.scm | 44 ++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 44 insertions(+)
diff --git a/gnu/packages/astronomy.scm b/gnu/packages/astronomy.scm
index ef85ec79e0..ee65fbf2c5 100644
--- a/gnu/packages/astronomy.scm
+++ b/gnu/packages/astronomy.scm
@@ -706,6 +706,50 @@ much of the core functionality and some common tools
needed for performing
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")
- branch master updated (c0139a595b -> ebac201995), guix-commits, 2022/01/25
- 01/08: environment: '--check' does nothing when used with '--container'., guix-commits, 2022/01/25
- 04/08: gnu: Add python-pyvo., guix-commits, 2022/01/25
- 03/08: doc: Document 'invoke' & co., guix-commits, 2022/01/25
- 02/08: build: Require Guile >= 3.0.3., guix-commits, 2022/01/25
- 07/08: gnu: Add python-photutils., guix-commits, 2022/01/25
- 05/08: gnu: Add python-astroquery.,
guix-commits <=
- 08/08: gnu: Add python-regions., guix-commits, 2022/01/25
- 06/08: gnu: Add python-astropy-healpix., guix-commits, 2022/01/25