From: jgart via Guix-patches via <guix-patches@gnu.org>
To: 60507@debbugs.gnu.org
Cc: jgart <jgart@dismail.de>
Subject: [bug#60507] [PATCH] gnu: Add python-haversine.
Date: Mon, 2 Jan 2023 19:24:11 -0600 [thread overview]
Message-ID: <20230103012411.27915-1-jgart@dismail.de> (raw)
* gnu/packages/geo.scm (python-haversine): New variable.
---
gnu/packages/geo.scm | 28 ++++++++++++++++++++++++++++
1 file changed, 28 insertions(+)
diff --git a/gnu/packages/geo.scm b/gnu/packages/geo.scm
index 2185af7a98..3b80b3e1e3 100644
--- a/gnu/packages/geo.scm
+++ b/gnu/packages/geo.scm
@@ -2788,6 +2788,34 @@ (define-public python-geopy
using third-party geocoders and other data sources.")
(license license:expat)))
+(define-public python-haversine
+ (package
+ (name "python-haversine")
+ (version "2.7.0")
+ (source (origin
+ (method git-fetch)
+ (uri (git-reference
+ ;; There are no tests in the PyPi archive.
+ (url "https://github.com/mapado/haversine")
+ (commit (string-append "v" version))))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32
+ "0inxyj5n4jzgg5xiadqx9sk83gdx5ff989l9s04smdzbd3b8c0c8"))))
+ (build-system python-build-system)
+ (native-inputs (list python-pytest python-numpy))
+ (arguments
+ (list #:phases
+ #~(modify-phases %standard-phases
+ (replace 'check
+ (lambda* (#:key tests? inputs #:allow-other-keys)
+ (when tests?
+ (invoke "pytest")))))))
+ (home-page "https://github.com/mapado/haversine")
+ (synopsis "Calculate the distance between 2 points on Earth.")
+ (description "Calculate the distance between 2 points on Earth.")
+ (license license:expat)))
+
(define-public gplates
(package
(name "gplates")
--
2.38.1
next reply other threads:[~2023-01-03 1:25 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-01-03 1:24 jgart via Guix-patches via [this message]
2023-01-03 1:39 ` [bug#60507] [PATCH] gnu: Add python-haversine jgart via Guix-patches via
2023-01-30 22:40 ` bug#60507: " Ludovic Courtès
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=20230103012411.27915-1-jgart@dismail.de \
--to=guix-patches@gnu.org \
--cc=60507@debbugs.gnu.org \
--cc=jgart@dismail.de \
/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.