[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
07/11: gnu: Add python-pyerfa.
From: |
guix-commits |
Subject: |
07/11: gnu: Add python-pyerfa. |
Date: |
Fri, 19 Feb 2021 05:07:02 -0500 (EST) |
glv pushed a commit to branch master
in repository guix.
commit 56ec8d6281b072e14d0442b6a55b1c315f9015cb
Author: Sharlatan Hellseher <sharlatanus@gmail.com>
AuthorDate: Fri Feb 19 10:07:28 2021 +0100
gnu: Add python-pyerfa.
* gnu/packages/astronomy.scm (python-pyerfa): New variable.
Signed-off-by: Guillaume Le Vaillant <glv@posteo.net>
---
gnu/packages/astronomy.scm | 42 ++++++++++++++++++++++++++++++++++++++++++
1 file changed, 42 insertions(+)
diff --git a/gnu/packages/astronomy.scm b/gnu/packages/astronomy.scm
index 09ac9e0..3d12a87 100644
--- a/gnu/packages/astronomy.scm
+++ b/gnu/packages/astronomy.scm
@@ -48,6 +48,7 @@
#:use-module (gnu packages perl)
#:use-module (gnu packages pkg-config)
#:use-module (gnu packages pretty-print)
+ #:use-module (gnu packages python-check)
#:use-module (gnu packages python-crypto)
#:use-module (gnu packages python-science)
#:use-module (gnu packages python-xyz)
@@ -774,6 +775,47 @@ more.")
JPL ephemerides use to predict raw (x,y,z) planetary positions.")
(license license:expat)))
+(define-public python-pyerfa
+ (package
+ (name "python-pyerfa")
+ (version "1.7.2")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (pypi-uri "pyerfa" version))
+ (sha256
+ (base32 "1s78mdyrxha2jcckfs0wg5ynkf0pwh1bw9mmh99vprinxh9n4xri"))
+ (modules '((guix build utils)))
+ (snippet
+ '(begin
+ ;; Remove bundled submodule library.
+ (delete-file-recursively "liberfa")
+ #t))))
+ (build-system python-build-system)
+ (arguments
+ `(#:phases
+ (modify-phases %standard-phases
+ (add-before 'build 'use-system-liberfa
+ (lambda _
+ (setenv "PYERFA_USE_SYSTEM_LIBERFA" "1")
+ #t)))))
+ (native-inputs
+ `(("pytest" ,python-pytest)
+ ("setuptools-scm" ,python-setuptools-scm)
+ ("pytest-doctestplus" ,python-pytest-doctestplus)))
+ (inputs
+ `(("liberfa" ,erfa)
+ ("numpy" ,python-numpy)))
+ (home-page "https://github.com/liberfa/pyerfa")
+ (synopsis "Python bindings for ERFA")
+ (description
+ "PyERFA is the Python wrapper for the ERFA library (Essential
+Routines for Fundamental Astronomy), a C library containing key algorithms for
+astronomy, which is based on the SOFA library published by the International
+Astronomical Union (IAU). All C routines are wrapped as Numpy universal
+functions, so that they can be called with scalar or array inputs.")
+ (license license:bsd-3)))
+
(define-public python-skyfield
(package
(name "python-skyfield")
- branch master updated (f90bbba -> 19e0811), guix-commits, 2021/02/19
- 01/11: gnu: Add python-pytest-astropy-header., guix-commits, 2021/02/19
- 04/11: gnu: Add python-skyfield., guix-commits, 2021/02/19
- 05/11: gnu: Add qfits., guix-commits, 2021/02/19
- 07/11: gnu: Add python-pyerfa.,
guix-commits <=
- 08/11: gnu: Add python-sep., guix-commits, 2021/02/19
- 10/11: gnu: Add libskry., guix-commits, 2021/02/19
- 02/11: gnu: Add python-pytest-astropy., guix-commits, 2021/02/19
- 03/11: gnu: Add python-extension-helpers., guix-commits, 2021/02/19
- 06/11: gnu: Add erfa., guix-commits, 2021/02/19
- 11/11: gnu: Add stackistry., guix-commits, 2021/02/19
- 09/11: gnu: Add python-astroalign., guix-commits, 2021/02/19