summaryrefslogtreecommitdiff
path: root/gnu/packages/python-xyz.scm
diff options
context:
space:
mode:
authorNicolas Graves <ngraves@ngraves.fr>2025-09-20 15:11:52 +0200
committerSharlatan Hellseher <sharlatanus@gmail.com>2025-09-20 19:26:51 +0100
commit940141cf061bee27b65f7cb1c6728c1f5cba5f13 (patch)
treea2c660b848412ab73ab1c6d93896e960582fe76c /gnu/packages/python-xyz.scm
parentafd99efce2e84f14be053d026a8c8e770e92dfa6 (diff)
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 <sharlatanus@gmail.com>
Diffstat (limited to 'gnu/packages/python-xyz.scm')
-rw-r--r--gnu/packages/python-xyz.scm22
1 files changed, 13 insertions, 9 deletions
diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index b66db1b279..add0ae44ea 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