From: Sharlatan Hellseher <sharlatanus@gmail.com>
To: 46237@debbugs.gnu.org
Subject: [bug#46237] [PATCH] Add new jplephem
Date: Mon, 1 Feb 2021 15:01:24 +0000 [thread overview]
Message-ID: <CAO+9K5q5XQJTEVsX5j+tgV96b1SptpS0vrm2HSLpCN5GWPZ5AA@mail.gmail.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 506 bytes --]
Hi Guix team!
I continue adding astronomy packages.
Is it better to put Python packages to python-science or it's ok to
keep them in astronomy?
--
… наш разум - превосходная объяснительная машина которая способна
найти смысл почти в чем угодно, истолковать любой феномен, но
совершенно не в состоянии принять мысль о непредсказуемости.
[-- Attachment #2: 0001-gnu-Add-jplephem.patch --]
[-- Type: text/x-patch, Size: 2453 bytes --]
From be78bcfd45dd5ac76da8882344198235b5952c71 Mon Sep 17 00:00:00 2001
From: Sharlatan Hellseher <sharlatanus@gmail.com>
Date: Mon, 1 Feb 2021 14:56:41 +0000
Subject: [PATCH] gnu: Add jplephem
* gnu/packages/astronomy.scm (python-jplephem): New variable
---
gnu/packages/astronomy.scm | 35 +++++++++++++++++++++++++++++++++++
1 file changed, 35 insertions(+)
diff --git a/gnu/packages/astronomy.scm b/gnu/packages/astronomy.scm
index 9777b0008f..6748d2dff1 100644
--- a/gnu/packages/astronomy.scm
+++ b/gnu/packages/astronomy.scm
@@ -48,12 +48,14 @@
#:use-module (gnu packages perl)
#:use-module (gnu packages pkg-config)
#:use-module (gnu packages pretty-print)
+ #:use-module (gnu packages python-xyz)
#:use-module (gnu packages qt)
#:use-module (gnu packages version-control)
#:use-module (gnu packages xiph)
#:use-module (gnu packages xorg)
#:use-module (guix build-system cmake)
#:use-module (guix build-system gnu)
+ #:use-module (guix build-system python)
#:use-module (ice-9 match)
#:use-module (srfi srfi-1))
@@ -692,3 +694,36 @@ more.")
license:gpl2+
license:lgpl2.0+
license:lgpl2.1+))))
+
+;;; Python based packages completely related to Astronomy
+
+(define-public python-jplephem
+ (package
+ (name "python-jplephem")
+ (version "2.15")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (pypi-uri "jplephem" version))
+ (sha256
+ (base32 "1ca3dswsslij79qg6dcijjz4l0fj6nzmxld8z93v45ahlkhps0g0"))))
+ (build-system python-build-system)
+ (arguments
+ `(#:phases
+ (modify-phases %standard-phases
+ (replace 'check
+ (lambda* (#:key outputs #:allow-other-keys)
+ (let ((out (assoc-ref outputs "out")))
+ (setenv "PYTHONPATH"
+ (string-append "./build/lib:"
+ (getenv "PYTHONPATH")))
+ (setenv "PATH" (string-append out "/bin:"
+ (getenv "PATH")))
+ (invoke "python" "-m" "unittest" "discover" "-s" "test")))))))
+ (inputs
+ `(("python-numpy" ,python-numpy)))
+ (home-page "https://github.com/brandon-rhodes/python-jplephem")
+ (synopsis "Python version of NASA DE4xx ephemerides")
+ (description
+ "Use a JPL ephemeris to predict planet positions.")
+ (license license:expat)))
--
2.30.0
next reply other threads:[~2021-02-01 15:07 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-02-01 15:01 Sharlatan Hellseher [this message]
2021-02-07 9:24 ` bug#46237: [PATCH] Add new jplephem Nicolas Goaziou
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=CAO+9K5q5XQJTEVsX5j+tgV96b1SptpS0vrm2HSLpCN5GWPZ5AA@mail.gmail.com \
--to=sharlatanus@gmail.com \
--cc=46237@debbugs.gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/guix.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.