unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
* [bug#60507] [PATCH] gnu: Add python-haversine.
@ 2023-01-03  1:24 jgart via Guix-patches via
  2023-01-03  1:39 ` jgart via Guix-patches via
  0 siblings, 1 reply; 3+ messages in thread
From: jgart via Guix-patches via @ 2023-01-03  1:24 UTC (permalink / raw)
  To: 60507; +Cc: jgart

* 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





^ permalink raw reply related	[flat|nested] 3+ messages in thread

* [bug#60507] [PATCH] gnu: Add python-haversine.
  2023-01-03  1:24 [bug#60507] [PATCH] gnu: Add python-haversine jgart via Guix-patches via
@ 2023-01-03  1:39 ` jgart via Guix-patches via
  2023-01-30 22:40   ` bug#60507: " Ludovic Courtès
  0 siblings, 1 reply; 3+ messages in thread
From: jgart via Guix-patches via @ 2023-01-03  1:39 UTC (permalink / raw)
  To: 60507; +Cc: jgart

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

hi,

v2 improves the description.

all best,

jgart
---
 gnu/packages/geo.scm | 30 ++++++++++++++++++++++++++++++
 1 file changed, 30 insertions(+)

diff --git a/gnu/packages/geo.scm b/gnu/packages/geo.scm
index 2185af7a98..37c0dcbd63 100644
--- a/gnu/packages/geo.scm
+++ b/gnu/packages/geo.scm
@@ -2788,6 +2788,36 @@ (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 "This package provides functions to calculate the
+distance in various units between two points on Earth using their
+latitude and longitude.")
+    (license license:expat)))
+
 (define-public gplates
   (package
     (name "gplates")
-- 
2.38.1





^ permalink raw reply related	[flat|nested] 3+ messages in thread

* bug#60507: [PATCH] gnu: Add python-haversine.
  2023-01-03  1:39 ` jgart via Guix-patches via
@ 2023-01-30 22:40   ` Ludovic Courtès
  0 siblings, 0 replies; 3+ messages in thread
From: Ludovic Courtès @ 2023-01-30 22:40 UTC (permalink / raw)
  To: jgart; +Cc: 60507-done

jgart <jgart@dismail.de> skribis:

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

Applied, thanks!

Ludo’.




^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2023-01-30 22:41 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-01-03  1:24 [bug#60507] [PATCH] gnu: Add python-haversine jgart via Guix-patches via
2023-01-03  1:39 ` jgart via Guix-patches via
2023-01-30 22:40   ` bug#60507: " Ludovic Courtès

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).