[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
05/09: gnu: Add python-haversine.
From: |
guix-commits |
Subject: |
05/09: gnu: Add python-haversine. |
Date: |
Mon, 30 Jan 2023 17:51:00 -0500 (EST) |
civodul pushed a commit to branch master
in repository guix.
commit d7552c36ce79dcef8ebc3f7ac97d23e9be9e9859
Author: jgart <jgart@dismail.de>
AuthorDate: Mon Jan 2 19:39:05 2023 -0600
gnu: Add python-haversine.
* gnu/packages/geo.scm (python-haversine): New variable.
Signed-off-by: Ludovic Courtès <ludo@gnu.org>
---
gnu/packages/geo.scm | 30 ++++++++++++++++++++++++++++++
1 file changed, 30 insertions(+)
diff --git a/gnu/packages/geo.scm b/gnu/packages/geo.scm
index 432903acc9..6402e56a0f 100644
--- a/gnu/packages/geo.scm
+++ b/gnu/packages/geo.scm
@@ -2826,6 +2826,36 @@ coordinates of addresses, cities, countries, and
landmarks across the globe
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")
- branch master updated (17448c8afa -> e6f557dd23), guix-commits, 2023/01/30
- 01/09: container: Correctly report exit status., guix-commits, 2023/01/30
- 06/09: gnu: Add go-github-com-google-gopacket., guix-commits, 2023/01/30
- 03/09: gnu: texinfo: Make 'perl-archive-zip' available to 'texi2any'., guix-commits, 2023/01/30
- 07/09: gnu: Add go-github-com-macronut-go-tproxy., guix-commits, 2023/01/30
- 08/09: gnu: Add phantomsocks., guix-commits, 2023/01/30
- 09/09: gnu: guile-ssh: Update to 0.16.3., guix-commits, 2023/01/30
- 04/09: gnu: Add font-carlito., guix-commits, 2023/01/30
- 02/09: linux-container: 'container-excursion' forks to join the PID namespace., guix-commits, 2023/01/30
- 05/09: gnu: Add python-haversine.,
guix-commits <=