[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
14/18: gnu: Add python-osmnx
From: |
guix-commits |
Subject: |
14/18: gnu: Add python-osmnx |
Date: |
Wed, 1 Jun 2022 17:29:19 -0400 (EDT) |
civodul pushed a commit to branch master
in repository guix.
commit e5c5ba749c779d76861f3ad94a03efa7f0c4d3a5
Author: Felix Gruber <felgru@posteo.net>
AuthorDate: Thu May 19 19:46:06 2022 +0000
gnu: Add python-osmnx
* gnu/packages/geo.scm (python-osmnx): New variable.
Signed-off-by: Ludovic Courtès <ludo@gnu.org>
---
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")
- branch master updated (572bc6d7bd -> 582b4bb4ce), guix-commits, 2022/06/01
- 01/18: shell: '--export-manifest -D x -D y' generates a valid manifest., guix-commits, 2022/06/01
- 08/18: gnu: libstrophe: Improve package definition., guix-commits, 2022/06/01
- 09/18: gnu: profanity: Update to 0.12.1., guix-commits, 2022/06/01
- 10/18: gnu: libmesode: Remove package., guix-commits, 2022/06/01
- 04/18: gnu: Add perl-socket-msghdr, guix-commits, 2022/06/01
- 02/18: gnu: Add emacs-bfuture., guix-commits, 2022/06/01
- 03/18: gnu: public-inbox: Some packaging fixes, guix-commits, 2022/06/01
- 05/18: gnu: public-inbox: Update to 1.8.0., guix-commits, 2022/06/01
- 06/18: gnu: emacs-doom-themes: Include extension files., guix-commits, 2022/06/01
- 14/18: gnu: Add python-osmnx,
guix-commits <=
- 15/18: gnu: Add freerct., guix-commits, 2022/06/01
- 07/18: gnu: libstrophe: Update to 0.12.0., guix-commits, 2022/06/01
- 13/18: gnu: python-rtree: Update to 1.0.0., guix-commits, 2022/06/01
- 17/18: gnu: smlnj: Use HTTPS home page., guix-commits, 2022/06/01
- 16/18: gnu: Add cdecl., guix-commits, 2022/06/01
- 18/18: doc: cookbook: Refer to the "Writing Manifests" manual node., guix-commits, 2022/06/01
- 11/18: gnu: profanity: Remove input labels., guix-commits, 2022/06/01
- 12/18: gnu: profanity: Add 'release-monitoring-url' property., guix-commits, 2022/06/01