From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id SGDDG8SehmL8XAAAbAwnHQ (envelope-from ) for ; Thu, 19 May 2022 21:47:16 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id iBaWG8SehmJKJQAA9RJhRA (envelope-from ) for ; Thu, 19 May 2022 21:47:16 +0200 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 1DD5D856F for ; Thu, 19 May 2022 21:47:16 +0200 (CEST) Received: from localhost ([::1]:47750 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nrm79-0005dV-8q for larch@yhetil.org; Thu, 19 May 2022 15:47:15 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:53482) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nrm6w-0005Zr-KU for guix-patches@gnu.org; Thu, 19 May 2022 15:47:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:42753) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nrm6w-0002QL-Bq for guix-patches@gnu.org; Thu, 19 May 2022 15:47:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nrm6w-00038F-96 for guix-patches@gnu.org; Thu, 19 May 2022 15:47:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#55528] [PATCH 2/2] gnu: Add python-osmnx Resent-From: Felix Gruber Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Thu, 19 May 2022 19:47:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 55528 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 55528@debbugs.gnu.org Cc: Felix Gruber Received: via spool by 55528-submit@debbugs.gnu.org id=B55528.165298958211972 (code B ref 55528); Thu, 19 May 2022 19:47:02 +0000 Received: (at 55528) by debbugs.gnu.org; 19 May 2022 19:46:22 +0000 Received: from localhost ([127.0.0.1]:36645 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nrm6H-000371-Sv for submit@debbugs.gnu.org; Thu, 19 May 2022 15:46:22 -0400 Received: from mout01.posteo.de ([185.67.36.65]:33113) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nrm6F-00036c-HY for 55528@debbugs.gnu.org; Thu, 19 May 2022 15:46:20 -0400 Received: from submission (posteo.de [185.67.36.169]) by mout01.posteo.de (Postfix) with ESMTPS id 75A27240027 for <55528@debbugs.gnu.org>; Thu, 19 May 2022 21:46:13 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1652989573; bh=UPI+mVV3DLAlyM91YTw7WQuMYbRAO/7HCoCJfZiKJBg=; h=From:To:Cc:Subject:Date:From; b=U2YfCmPk6hABnBSi0bP5Ui4Z5LJ8rdBTbMw7lyoJKyAKxV85AWHBPMcDv9NqRD9tT g3GU6zD3thwAA4eC0KUwF6rA2NUijvYwZVCduE8/qEZnt/oZ7cAkFW0KWjRqWaPgwL cp2z6dIHB4mEJu2KWTUAC8luNeEvgj6SOCxE0PZyQDgDK64DdBCOFT6cJm3difimr4 pp/YAtxPGXllqG7165sgS8PSSFWiGlE00y1fWQpm5zpDAzoKjgePKmFDy6xNfm2m/9 v74RIudYjNFSdAfkZzgTA+mGMEHI9MqfPPgc1ECYqFPsvbcNnyNawpeRq18lUhDrS8 KC4wThDUxj0Lw== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4L40j05dXyz6tmX; Thu, 19 May 2022 21:46:12 +0200 (CEST) From: Felix Gruber Date: Thu, 19 May 2022 19:46:06 +0000 Message-Id: <20220519194606.4548-2-felgru@posteo.net> In-Reply-To: <20220519194407.4435-1-felgru@posteo.net> References: <20220519194407.4435-1-felgru@posteo.net> 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: , Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: "Guix-patches" X-Migadu-Flow: FLOW_IN X-Migadu-To: larch@yhetil.org X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1652989636; h=from:from:sender:sender: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=c/uGQDVoWcBS1yR2OPCZCmQGDvbgvBE1q/vbogIjBB0=; b=m6QmniEgNVW1rSMbnCehjzTNiIGkTQWXnGULpa6p9MLIsaEUOHUzgLuBIp7vKTX9PCFWhR V37bDtXf9dp6jmbMRjov0ikvvXgL8O1xft4DaTIjiHH/Pyob0Jzm44Rq1WlfmUMw3dnNQ+ Nq+ildNQudMF2ec4k55JOXzOtUIdDXjiK2a6Pj5RtAR+Zz/QOVBKLP+hdzqPYLD6xFWALW LFJF9Sg9ILClajpFE670rgybhQEu3nW4uGyoCDA2MZjBlpCRYu05HA1kb5DsttEczXBstu 7hfjlgsucRreQsYJQGdmQg53CvC7lYhAozI8cZIDJyUWystiRj62KhWNeXw8mg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1652989636; a=rsa-sha256; cv=none; b=sYROLhPMI2g18gVDLnqWFCSWCaeV4sBHmiv5iOw70PgC6W8tkRdIUMPY0zE8rOKD86qtHc JDSW9jJdzLucvPrVF9bJs5gnqEe1Y/JJFNJFRRMuEb0qvjsJOhh/H9LykGKI6ddtCBJnGF J8VhRXb2h4brGMy2EhYcsiY9heSYMTwqx2q5FADtnqjdNoIUaFZ0plLQ/eKWr/XYAhxGgh KBqSYlZuW8TUS7z27+72W6lcxs07nsvwZt0EWLDPE62ZXf6t+Dc3Fqsh+ItlF/ijmWMpcp m5pNgEHzgZFJHb9RGh83raBGvllMjbQxzePlLgjFim5KUxsbPl8FRDuJpmPB7g== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=posteo.net header.s=2017 header.b=U2YfCmPk; dmarc=fail reason="SPF not aligned (strict)" header.from=posteo.net (policy=none); 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" X-Migadu-Spam-Score: 8.76 X-Spam: Yes Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=posteo.net header.s=2017 header.b=U2YfCmPk; dmarc=fail reason="SPF not aligned (strict)" header.from=posteo.net (policy=none); 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" X-Migadu-Queue-Id: 1DD5D856F X-Spam-Score: 8.76 X-Migadu-Spam: Yes X-Migadu-Scanner: scn1.migadu.com X-TUID: UIwbhB+aiZG3 * gnu/packages/geo.scm (python-osmnx): New variable. --- gnu/packages/geo.scm | 65 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 65 insertions(+) diff --git a/gnu/packages/geo.scm b/gnu/packages/geo.scm index 37a3e6d179..ea7483f16f 100644 --- a/gnu/packages/geo.scm +++ b/gnu/packages/geo.scm @@ -739,6 +739,71 @@ enables you to easily do operations in Python that would otherwise require a spatial database such as PostGIS.") (license license:bsd-3))) +(define-public python-osmnx + (package + (name "python-osmnx") + (version "1.1.2") + (source + (origin + ; Fetch from github as the pypi package is missing the tests dir. + (method git-fetch) + (uri (git-reference + (url "https://github.com/gboeing/osmnx") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "1n8qjn184p5a2s3j6x6iyc1i7p3l3xnbqqxm6ajwgwv6j5fw1d5a")))) + (build-system python-build-system) + (arguments + '(#:phases + (modify-phases %standard-phases + (replace 'check + (lambda* (#:key tests? inputs outputs #:allow-other-keys) + (when tests? + (add-installed-pythonpath inputs outputs) + ; TODO: Disable network tests + (invoke "pytest" "tests" + "-k" + (string-append + ;; The following tests require network access. + "not test_geocode_to_gdf" + " and not test_stats" + " and not test_osm_xml" + " and not test_elevation" + " and not test_routing" + " and not test_plots" + " and not test_find_nearest" + " and not test_api_endpoints" + " and not test_graph_save_load" + " and not test_graph_from_functions" + " and not test_geometries")))))))) + (propagated-inputs + (list python-folium + python-geopandas + python-matplotlib + python-networkx + python-numpy + python-pandas + python-pyproj + python-requests + python-rtree + python-shapely)) + (native-inputs + (list python-numpy python-pytest)) + (home-page "https://github.com/gboeing/osmnx") + (synopsis + "Retrieve, model, analyze, and visualize OpenStreetMap street networks") + (description + "OSMnx is a Python library that lets you download geospatial data +from OpenStreetMap and model, project, visualize, and analyze real-world +street networks and any other geospatial geometries. You can download +and model walkable, drivable, or bikeable urban networks with a single +line of Python code then easily analyze and visualize them. You can +just as easily download and work with other infrastructure types, +amenities/points of interest, building footprints, elevation data, +street bearings/orientations, and speed/travel time.") + (license license:expat))) + (define-public mapnik (package (name "mapnik") -- 2.30.2