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 0CESHwCEs2MGzQAAbAwnHQ (envelope-from ) for ; Tue, 03 Jan 2023 02:25:20 +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 kB49HgCEs2ObtgAAG6o9tA (envelope-from ) for ; Tue, 03 Jan 2023 02:25:20 +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 22A5BA48A for ; Tue, 3 Jan 2023 02:25:20 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pCW36-00056O-JO; Mon, 02 Jan 2023 20:25:04 -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 1pCW35-000560-4G for guix-patches@gnu.org; Mon, 02 Jan 2023 20:25:03 -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 1pCW34-00063u-Mt for guix-patches@gnu.org; Mon, 02 Jan 2023 20:25:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pCW34-00023L-C2 for guix-patches@gnu.org; Mon, 02 Jan 2023 20:25:02 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#60507] [PATCH] gnu: Add python-haversine. Resent-From: jgart Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Tue, 03 Jan 2023 01:25:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 60507 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 60507@debbugs.gnu.org Cc: jgart X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.16727090787850 (code B ref -1); Tue, 03 Jan 2023 01:25:02 +0000 Received: (at submit) by debbugs.gnu.org; 3 Jan 2023 01:24:38 +0000 Received: from localhost ([127.0.0.1]:44377 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pCW2g-00022Y-26 for submit@debbugs.gnu.org; Mon, 02 Jan 2023 20:24:38 -0500 Received: from lists.gnu.org ([209.51.188.17]:36098) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pCW2d-00022Q-S6 for submit@debbugs.gnu.org; Mon, 02 Jan 2023 20:24:36 -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 1pCW2c-00053A-DY for guix-patches@gnu.org; Mon, 02 Jan 2023 20:24:34 -0500 Received: from mx2.dismail.de ([159.69.191.136]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pCW2a-00061b-5j for guix-patches@gnu.org; Mon, 02 Jan 2023 20:24:34 -0500 Received: from mx2.dismail.de (localhost [127.0.0.1]) by mx2.dismail.de (OpenSMTPD) with ESMTP id 985309e4 for ; Tue, 3 Jan 2023 02:24:29 +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=tuUsTr1UOh3OxD6YF4eJq9D7hHY6mo3IGqn9r1MhjDs=; b= X/4f+1SpXdrPQAyrWs0Ru1VFMX3tm0jD4MXal8MGnViUwsIH6R16jCZkXUJ6oMwT 2MbJWxcE03BNwPzR69JfCtMurlI/fPoWopLpbzB37aATEYQ3Ai2uzpas4h/EtbPj PxWZSxA22ZUv9ehI1hFcmYPBVXKkuGzc1dUdeax9epGn4vLpL60+F8Ohj4bpAw4M XZi+fqtgqlOqi5jpuQ0eHUtTofshm2a2zw3Qn/0Z/LNeSHeX1tIEx5ExSr6jksYT A9v/rpLNCy7/fBNEusbemwD57XuZ8BYuL018VAzznLynnG2IA1eoEYIlBsdcCVCq A4qlSe+ZXvChP6fQ/IunYA== Received: from smtp1.dismail.de ( [10.240.26.11]) by mx2.dismail.de (OpenSMTPD) with ESMTP id a47f51c2 for ; Tue, 3 Jan 2023 02:24:29 +0100 (CET) Received: from smtp1.dismail.de (localhost [127.0.0.1]) by smtp1.dismail.de (OpenSMTPD) with ESMTP id cd424250 for ; Tue, 3 Jan 2023 02:24:29 +0100 (CET) Received: by dismail.de (OpenSMTPD) with ESMTPSA id 75c6eeea (TLSv1.3:TLS_AES_256_GCM_SHA384:256:NO); Tue, 3 Jan 2023 02:24:28 +0100 (CET) Date: Mon, 2 Jan 2023 19:24:11 -0600 Message-Id: <20230103012411.27915-1-jgart@dismail.de> X-Mailer: git-send-email 2.38.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=159.69.191.136; envelope-from=jgart@dismail.de; helo=mx2.dismail.de X-Spam_score_int: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.4 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action 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=1672709120; 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:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=39c7q5FmLlyWTkpki2G/ohwH1TgQUV6d4pPd5AnqJPM=; b=kyK5yGSfiZk+o3jg3MBV/ehHZatSchOpYgZJiCrHOFt58FlbeRYE486uC+67/ODzPW3AYR xKcD5dpOTlYdT/BQwG+6QiDia6LP34Wehl7le8KTRFQVva/ii8gG2wuKdFRM660vexy9bn H568A1b2fq8/h1kEYwYaiA3YLfMxvPnwXP/KbTOxCGGtOo8RIWoRXHFsZe53Bn4lAYrgth spcCTUohZGTZ/aKcVN20UTqoJ1scpcQHQsa+qaUP1rKWLHAboq5BEaoa/tSvlyBw7uA2bF Iq1Xhh3wpRADxTbZ390VWObxREhD1H+eKt5bOtf7L1WEa2WfQfoLJNUM16Z9fQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=dismail.de header.s=20190914 header.b="X/4f+1Sp"; 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=1672709120; a=rsa-sha256; cv=none; b=gOSyxfH080L3OjY4/jk1MkcMsV1eLwUtk0ZMr4Wx60FwfSabrKxO+tBqvZ6Y59WWf1vCbo PKEkyJe5coUNXTEITZR7FFnamfxrHmVaxW2a0t3RqyNJlmiajumZa3Ltk2077is0HAB1w2 Scu1VZmXtPOjnhd0cHsmc3v/4c/nYC+Fq3Mz2mlGGsAitG59xpVyjnu4whdqrPvvJJE3LQ wQe3kMl6Y7HtfZtSL08NszaEtkW2g3cQBhWXxz02XRc7l5gz0ggvDWMwl0t4u921IR/rN+ 7eHXQPfaHyh/0YT4OI0GvXqhOwhCM1EBKjrc4ek2JucaRs8TcIDWZ2ZvEfhpgw== X-Spam-Score: -1.95 X-Migadu-Queue-Id: 22A5BA48A Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=dismail.de header.s=20190914 header.b="X/4f+1Sp"; 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.95 X-TUID: 2sWB4ldTKCoG * 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