git: 24ceb0678c9a - main - graphics/py-osmnx: Add py-osmnx 2.1.1
Po-Chuan Hsieh <[email protected]>
| Newsgroups | gmane.os.freebsd.devel.cvs.ports |
|---|---|
| Message-ID | <[email protected]> |
The branch main has been updated by sunpoet: URL: https://cgit.FreeBSD.org/ports/commit/?id=24ceb0678c9a35a71286f13cda3b2920f9348ee0 commit 24ceb0678c9a35a71286f13cda3b2920f9348ee0 Author: Po-Chuan Hsieh <[email protected]> AuthorDate: 2026-08-19 12:24:31 +0000 Commit: Po-Chuan Hsieh <[email protected]> CommitDate: 2026-08-19 12:55:12 +0000 graphics/py-osmnx: Add py-osmnx 2.1.1 OSMnx is a Python package to easily download, model, analyze, and visualize street networks and other geospatial features from OpenStreetMap. You can download and model walking, driving, or biking networks with a single line of code then analyze and visualize them. You can just as easily work with urban amenities/points of interest, building footprints, transit stops, elevation data, street orientations, speed/travel time, and routing. --- graphics/Makefile | 1 + graphics/py-osmnx/Makefile | 29 ++++++++++++++++++++++++++++ graphics/py-osmnx/distinfo | 3 +++ graphics/py-osmnx/files/patch-pyproject.toml | 11 +++++++++++ graphics/py-osmnx/pkg-descr | 6 ++++++ 5 files changed, 50 insertions(+) diff --git a/graphics/Makefile b/graphics/Makefile index 5ad59a8b0832..490069926a59 100644 --- a/graphics/Makefile +++ b/graphics/Makefile @@ -997,6 +997,7 @@ SUBDIR += py-openslide-python SUBDIR += py-optimize-images SUBDIR += py-osmnet + SUBDIR += py-osmnx SUBDIR += py-pandana SUBDIR += py-pandarm SUBDIR += py-pdf2image diff --git a/graphics/py-osmnx/Makefile b/graphics/py-osmnx/Makefile new file mode 100644 index 000000000000..3cef522bb95c --- /dev/null +++ b/graphics/py-osmnx/Makefile @@ -0,0 +1,29 @@ +PORTNAME= osmnx +PORTVERSION= 2.1.1 +CATEGORIES= graphics python +MASTER_SITES= PYPI +PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} + +MAINTAINER= [email protected] +COMMENT= Download, model, analyze, and visualize street networks and other geospatial features from OpenStreetMap +WWW= https://osmnx.readthedocs.io/en/stable/ \ + https://github.com/gboeing/osmnx + +LICENSE= MIT +LICENSE_FILE= ${WRKSRC}/LICENSE.txt + +BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}flit-core>=0:devel/py-flit-core@${PY_FLAVOR} +RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}geopandas>=1.0.1:graphics/py-geopandas@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}networkx>=2.5,2:math/py-networkx@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}numpy>=1.24,1:math/py-numpy@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}pandas>=1.5,1:math/py-pandas@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}requests>=2.30:www/py-requests@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}shapely>=2.0:devel/py-shapely@${PY_FLAVOR} + +USES= python +USE_PYTHON= autoplist concurrent pep517 + +MAKE_ENV= SOURCE_DATE_EPOCH=315532800 # 1980-01-01 00:00:00 UTC +NO_ARCH= yes + +.include <bsd.port.mk> diff --git a/graphics/py-osmnx/distinfo b/graphics/py-osmnx/distinfo new file mode 100644 index 000000000000..c0e6d056387f --- /dev/null +++ b/graphics/py-osmnx/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1784005008 +SHA256 (osmnx-2.1.1.tar.gz) = 0785166487d4d8da5a551dac3d1562fe114fb39f3bf66f261c8b4d60baee9295 +SIZE (osmnx-2.1.1.tar.gz) = 90368 diff --git a/graphics/py-osmnx/files/patch-pyproject.toml b/graphics/py-osmnx/files/patch-pyproject.toml new file mode 100644 index 000000000000..8c4d2d595618 --- /dev/null +++ b/graphics/py-osmnx/files/patch-pyproject.toml @@ -0,0 +1,11 @@ +--- pyproject.toml.orig 1970-01-01 00:00:00 UTC ++++ pyproject.toml +@@ -1,6 +1,6 @@ + [build-system] +-build-backend = "uv_build" +-requires = ["uv_build==0.11.*"] ++requires = ["flit-core >= 3.12"] ++build-backend = "flit_core.buildapi" + + [project] + authors = [{ name = "Geoff Boeing", email = "[email protected]" }] diff --git a/graphics/py-osmnx/pkg-descr b/graphics/py-osmnx/pkg-descr new file mode 100644 index 000000000000..dd267843e59f --- /dev/null +++ b/graphics/py-osmnx/pkg-descr @@ -0,0 +1,6 @@ +OSMnx is a Python package to easily download, model, analyze, and visualize +street networks and other geospatial features from OpenStreetMap. You can +download and model walking, driving, or biking networks with a single line of +code then analyze and visualize them. You can just as easily work with urban +amenities/points of interest, building footprints, transit stops, elevation +data, street orientations, speed/travel time, and routing.