From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id qJHgA7uHs2NgIgEAbAwnHQ (envelope-from ) for ; Tue, 03 Jan 2023 02:41:15 +0100 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id eFwFA7uHs2M/7AAAG6o9tA (envelope-from ) for ; Tue, 03 Jan 2023 02:41:15 +0100 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 959DEAD40 for ; Tue, 3 Jan 2023 02:41:14 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pCWIb-0007DW-CY; Mon, 02 Jan 2023 20:41:05 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pCWIY-0007DK-Sf for guix-patches@gnu.org; Mon, 02 Jan 2023 20:41:02 -0500 Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pCWIY-0000Et-1v for guix-patches@gnu.org; Mon, 02 Jan 2023 20:41:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pCWIX-0002T3-LD for guix-patches@gnu.org; Mon, 02 Jan 2023 20:41:01 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#60507] [PATCH] gnu: Add python-haversine. References: <20230103012411.27915-1-jgart@dismail.de> In-Reply-To: <20230103012411.27915-1-jgart@dismail.de> Resent-From: jgart Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Tue, 03 Jan 2023 01:41:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 60507 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 60507@debbugs.gnu.org Cc: jgart Received: via spool by 60507-submit@debbugs.gnu.org id=B60507.16727100089403 (code B ref 60507); Tue, 03 Jan 2023 01:41:01 +0000 Received: (at 60507) by debbugs.gnu.org; 3 Jan 2023 01:40:08 +0000 Received: from localhost ([127.0.0.1]:44384 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pCWHf-0002Ra-JP for submit@debbugs.gnu.org; Mon, 02 Jan 2023 20:40:07 -0500 Received: from mx1.dismail.de ([78.46.223.134]:31974) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pCWHZ-0002Qv-S1 for 60507@debbugs.gnu.org; Mon, 02 Jan 2023 20:40:05 -0500 Received: from mx1.dismail.de (localhost [127.0.0.1]) by mx1.dismail.de (OpenSMTPD) with ESMTP id a4fbe01e for <60507@debbugs.gnu.org>; Tue, 3 Jan 2023 02:39:49 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed; d=dismail.de; h=from:to:cc :subject:date:message-id:mime-version:content-transfer-encoding; s=20190914; bh=FK0VvyOLOEUKovd8Y/kfmzc33NFJqsb1832g0qWuzzM=; b= bzQ3Gy0fH+RMd6kGs368mOoZl7baYIbEMyvsA3OfxVtKjFpljAKDkfQEhegUREng 1fjK0mm1ZPQpNnQHYwhgqQhCuKxURV163R6AsrMFxh1gufITNX9h4V8RJDn56jWz L3PwJiRkmnPu0dPNBLLYe9/36OXBZzFOT/2yZGhg3QFTcxhPmB/ZahKkDAThbgHO SLOD93GikC1bCJSNr4CyE0GVxEdvG7dkIv93YQ/hiCUy7po3Gx1CjeppPczkXkn/ JZm4ZSbo2aD1Yc9gNeIkhDOyQHV88NukMnI1oZaapsDoMhfxfqmdWGGhFfSizT+h ZVXzOtHU6K3RXBpSWJEWDQ== Received: from smtp1.dismail.de ( [10.240.26.11]) by mx1.dismail.de (OpenSMTPD) with ESMTP id 387496c2 for <60507@debbugs.gnu.org>; Tue, 3 Jan 2023 02:39:49 +0100 (CET) Received: from smtp1.dismail.de (localhost [127.0.0.1]) by smtp1.dismail.de (OpenSMTPD) with ESMTP id cc6af86e for <60507@debbugs.gnu.org>; Tue, 3 Jan 2023 02:39:48 +0100 (CET) Received: by dismail.de (OpenSMTPD) with ESMTPSA id a4e04746 (TLSv1.3:TLS_AES_256_GCM_SHA384:256:NO); Tue, 3 Jan 2023 02:39:43 +0100 (CET) Date: Mon, 2 Jan 2023 19:39:05 -0600 Message-Id: <20230103013904.30007-1-jgart@dismail.de> X-Mailer: git-send-email 2.38.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-to: jgart X-ACL-Warn: , jgart via Guix-patches From: jgart via Guix-patches via Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: guix-patches-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1672710074; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding:resent-cc: resent-from:resent-sender:resent-message-id:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=vXTIyxYyYT9UaxwZaHVPkMWPgJj7p7+GCKOLyPeNH0w=; b=aVW0m+yYEfKufO4xN69nDOIUUHzcQkx0Dw2cge7nzpWA4j8PBfGHX/QKOzteiAFW6uKK3/ 2iKsp+XI1qqhKUg5Q+iC/l/vKsx4zl8/AXwhtWFVDPM//KMCl2ga0NjYdyJtvPzNEEFqHR FTzvSkWO36AtIcZaDypUsfcqyrNFdr4BUp8SA4tF+o7coo0NMd+qJYzWyyKzozwngWMRLy 5nYvu2i6LsIO/vgg1Ohe7VRDASxAXGehiej8ROzAc3/FjX+Ghv3t6jjTl5fRE7a+hKdH6r OqSF4GLG5MRwqS2nBP8FQG8yaWrlEmmjNuhpU8GeHdClGRMGvkb2/yK9BN734w== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=dismail.de header.s=20190914 header.b=bzQ3Gy0f; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=none) header.from=gnu.org ARC-Seal: i=1; s=key1; d=yhetil.org; t=1672710074; a=rsa-sha256; cv=none; b=EeJBH+R1CvpogRT3+UoyuFi7Ela7rQlxB0rrZTWNXF+4Ixq9PlmkfieT2zMNaI4bk/yvYX vDRRm4w5t9dcAoS/RycTFkAxTi+Q5HkD6YhtD6yxkIvYu0Ygd3+7HPKVeppuuP25ABKnCc uRCYuhgPrROYKusupairAFzq8oNlRH6Mkqjw6yBmd1SjDC1RBvnMh6r5AfrrwdX48HFqUO U1b1M/GZtV5Snb5cb5uQSQFtDDTnanITbZku4x4hBjH0dEjPaFyz4RIhVlVmYm0BDDYc2C 4DSH5K0ujjqHEhlzcq1DO2db6I51Q8x1DFaCrEaQ3cQmheakITj08YBAMHmU8A== X-Spam-Score: -1.65 X-Migadu-Queue-Id: 959DEAD40 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=dismail.de header.s=20190914 header.b=bzQ3Gy0f; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=none) header.from=gnu.org X-Migadu-Scanner: scn1.migadu.com X-Migadu-Spam-Score: -1.65 X-TUID: hJOeqg7H+Iw0 * 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