GNU bug report logs - #60507
[PATCH] gnu: Add python-haversine.

Previous Next

Package: guix-patches;

Reported by: jgart <jgart <at> dismail.de>

Date: Tue, 3 Jan 2023 01:25:02 UTC

Severity: normal

Tags: patch

Done: Ludovic Courtès <ludo <at> gnu.org>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: help-debbugs <at> gnu.org (GNU bug Tracking System)
To: Ludovic Courtès <ludo <at> gnu.org>
Cc: tracker <at> debbugs.gnu.org
Subject: bug#60507: closed ([PATCH] gnu: Add python-haversine.)
Date: Mon, 30 Jan 2023 22:41:02 +0000
[Message part 1 (text/plain, inline)]
Your message dated Mon, 30 Jan 2023 23:40:01 +0100
with message-id <87edrbwsse.fsf_-_ <at> gnu.org>
and subject line Re: bug#60507: [PATCH] gnu: Add python-haversine.
has caused the debbugs.gnu.org bug report #60507,
regarding [PATCH] gnu: Add python-haversine.
to be marked as done.

(If you believe you have received this mail in error, please contact
help-debbugs <at> gnu.org.)


-- 
60507: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=60507
GNU Bug Tracking System
Contact help-debbugs <at> gnu.org with problems
[Message part 2 (message/rfc822, inline)]
From: jgart <jgart <at> dismail.de>
To: guix-patches <at> gnu.org
Cc: jgart <jgart <at> dismail.de>
Subject: [PATCH] gnu: Add python-haversine.
Date: Mon,  2 Jan 2023 19:24:11 -0600
* 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



[Message part 3 (message/rfc822, inline)]
From: Ludovic Courtès <ludo <at> gnu.org>
To: jgart <jgart <at> dismail.de>
Cc: 60507-done <at> debbugs.gnu.org
Subject: Re: bug#60507: [PATCH] gnu: Add python-haversine.
Date: Mon, 30 Jan 2023 23:40:01 +0100
jgart <jgart <at> dismail.de> skribis:

> * gnu/packages/geo.scm (python-haversine): New variable.

Applied, thanks!

Ludo’.


This bug report was last modified 2 years and 169 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.