git: 8bb0e2808e8b - main - graphics/py-contextily: Add py-contextily 1.6.0

From: Po-Chuan Hsieh <sunpoet_at_FreeBSD.org>
Date: Sun, 04 Aug 2024 17:21:46 UTC
The branch main has been updated by sunpoet:

URL: https://cgit.FreeBSD.org/ports/commit/?id=8bb0e2808e8bda81ea5596ecd10ce41a1d4a35bd

commit 8bb0e2808e8bda81ea5596ecd10ce41a1d4a35bd
Author:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
AuthorDate: 2024-08-04 16:44:07 +0000
Commit:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
CommitDate: 2024-08-04 17:13:52 +0000

    graphics/py-contextily: Add py-contextily 1.6.0
    
    contextily is a small Python 3 package to retrieve tile maps from the internet.
    It can add those tiles as basemap to matplotlib figures or write tile maps to
    disk into geospatial raster files. Bounding boxes can be passed in both WGS84
    (EPSG:4326) and Spheric Mercator (EPSG:3857). See the notebook
    contextily_guide.ipynb for usage.
    
    The current tile providers that are available in contextily are the providers
    defined in the xyzservices package. This includes some popular tile maps, such
    as:
    - The standard OpenStreetMap map tiles
    - Toner, Terrain and Watercolor map tiles by Stamen Design
---
 graphics/Makefile                |  1 +
 graphics/py-contextily/Makefile  | 32 ++++++++++++++++++++++++++++++++
 graphics/py-contextily/distinfo  |  3 +++
 graphics/py-contextily/pkg-descr | 11 +++++++++++
 4 files changed, 47 insertions(+)

diff --git a/graphics/Makefile b/graphics/Makefile
index a234e4a9da43..3dbe0b7c506a 100644
--- a/graphics/Makefile
+++ b/graphics/Makefile
@@ -885,6 +885,7 @@
     SUBDIR += py-colorthief
     SUBDIR += py-colorz
     SUBDIR += py-colour
+    SUBDIR += py-contextily
     SUBDIR += py-descartes
     SUBDIR += py-diplib
     SUBDIR += py-django-easy-thumbnails
diff --git a/graphics/py-contextily/Makefile b/graphics/py-contextily/Makefile
new file mode 100644
index 000000000000..6d3e786f49bb
--- /dev/null
+++ b/graphics/py-contextily/Makefile
@@ -0,0 +1,32 @@
+PORTNAME=	contextily
+PORTVERSION=	1.6.0
+CATEGORIES=	graphics python
+MASTER_SITES=	PYPI
+PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
+
+MAINTAINER=	sunpoet@FreeBSD.org
+COMMENT=	Context geo-tiles in Python
+WWW=		https://contextily.readthedocs.io/en/latest/ \
+		https://github.com/geopandas/contextily
+
+LICENSE=	BSD3CLAUSE
+LICENSE_FILE=	${WRKSRC}/LICENSE.txt
+
+BUILD_DEPENDS=	${PYTHON_PKGNAMEPREFIX}setuptools>=61.0:devel/py-setuptools@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}setuptools-scm>=6.2:devel/py-setuptools-scm@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}wheel>=0:devel/py-wheel@${PY_FLAVOR}
+RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}geopy>=0:net/py-geopy@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}joblib>=0:devel/py-joblib@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}matplotlib>=0:math/py-matplotlib@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}mercantile>=0:science/py-mercantile@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}pillow>=0:graphics/py-pillow@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}rasterio>=0:graphics/py-rasterio@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}requests>=0:www/py-requests@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}xyzservices>=0:www/py-xyzservices@${PY_FLAVOR}
+
+USES=		python
+USE_PYTHON=	autoplist concurrent pep517
+
+NO_ARCH=	yes
+
+.include <bsd.port.mk>
diff --git a/graphics/py-contextily/distinfo b/graphics/py-contextily/distinfo
new file mode 100644
index 000000000000..022049f96e7c
--- /dev/null
+++ b/graphics/py-contextily/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1722711127
+SHA256 (contextily-1.6.0.tar.gz) = 8ab8ea9ec427c07960fae4964cfa6964b88c87546b97896422dbefc9fa8457f3
+SIZE (contextily-1.6.0.tar.gz) = 22461455
diff --git a/graphics/py-contextily/pkg-descr b/graphics/py-contextily/pkg-descr
new file mode 100644
index 000000000000..d77c959e7690
--- /dev/null
+++ b/graphics/py-contextily/pkg-descr
@@ -0,0 +1,11 @@
+contextily is a small Python 3 package to retrieve tile maps from the internet.
+It can add those tiles as basemap to matplotlib figures or write tile maps to
+disk into geospatial raster files. Bounding boxes can be passed in both WGS84
+(EPSG:4326) and Spheric Mercator (EPSG:3857). See the notebook
+contextily_guide.ipynb for usage.
+
+The current tile providers that are available in contextily are the providers
+defined in the xyzservices package. This includes some popular tile maps, such
+as:
+- The standard OpenStreetMap map tiles
+- Toner, Terrain and Watercolor map tiles by Stamen Design