summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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