From 940141cf061bee27b65f7cb1c6728c1f5cba5f13 Mon Sep 17 00:00:00 2001 From: Nicolas Graves Date: Sat, 20 Sep 2025 15:11:52 +0200 Subject: [PATCH] gnu: python-mercantile: Switch to pyproject. * gnu/packages/python-xyz.scm (python-mercantile): [source]: Switch to git-fetch. [build-system]: Switch to pyproject-build-system. [native-inputs]: Add python-setuptools. [description]: Improve style. Change-Id: Id6c1a3750489947935ac32c6826969a5a83f00d8 Signed-off-by: Sharlatan Hellseher --- gnu/packages/python-xyz.scm | 22 +++++++++++++--------- 1 file changed, 13 insertions(+), 9 deletions(-) diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm index b66db1b2797..add0ae44ead 100644 --- a/gnu/packages/python-xyz.scm +++ b/gnu/packages/python-xyz.scm @@ -31534,19 +31534,23 @@ supports Image, Video, GeoJSON and TopoJSON overlays.") (version "1.2.1") (source (origin - (method url-fetch) - (uri (pypi-uri "mercantile" version)) + (method git-fetch) + (uri (git-reference + (url "https://github.com/mapbox/mercantile") + (commit version))) + (file-name (git-file-name name version)) (sha256 - (base32 "0sxmndhzzrvss5irsgzfrk51k6jihwcb7661992mizdgbnqnsg7s")))) - (build-system python-build-system) + (base32 "1b7kglzkjz1gmgjgk2y3n4gg70b8zdfg6kyqx2g7a3z7clxxf80f")))) + (build-system pyproject-build-system) (propagated-inputs (list python-click)) - (native-inputs - (list python-check-manifest python-hypothesis python-pytest)) + (native-inputs (list python-check-manifest python-hypothesis python-pytest + python-setuptools)) (home-page "https://github.com/mapbox/mercantile") (synopsis "Web mercator XYZ tile utilities") - (description "The mercantile module provides @code{ul(xtile, ytile, zoom)} -and @code{bounds(xtile, ytile, zoom)} functions that respectively return the -upper left corner and bounding longitudes and latitudes for XYZ tiles, a + (description + "The mercantile module provides @code{ul(xtile, ytile, zoom)} and +@code{bounds(xtile, ytile, zoom)} functions that respectively return the upper +left corner and bounding longitudes and latitudes for XYZ tiles, a @code{xy(lng, lat)} function that returns spherical mercator x and y coordinates, a @code{tile(lng, lat, zoom)} function that returns the tile containing a given point, and quadkey conversion functions