[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
04/05: gnu: Add python-xyzservices.
From: |
guix-commits |
Subject: |
04/05: gnu: Add python-xyzservices. |
Date: |
Fri, 6 May 2022 07:12:55 -0400 (EDT) |
rekado pushed a commit to branch master
in repository guix.
commit 221bf543e8e92230424d7d3ca7f1c61c33b536f9
Author: Ricardo Wurmus <rekado@elephly.net>
AuthorDate: Fri May 6 11:23:34 2022 +0200
gnu: Add python-xyzservices.
* gnu/packages/python-xyz.scm (python-xyzservices): New variable.
---
gnu/packages/python-xyz.scm | 27 +++++++++++++++++++++++++++
1 file changed, 27 insertions(+)
diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index cde610455f..6f450f6c50 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -24429,6 +24429,33 @@ containing a given point, and quadkey conversion
functions
translating between quadkey and tile coordinates.")
(license license:bsd-3)))
+(define-public python-xyzservices
+ (package
+ (name "python-xyzservices")
+ (version "2022.4.0")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (pypi-uri "xyzservices" version))
+ (sha256
+ (base32 "1paxv4i0dws85md7csv7pf80jl3xh792mx8rxnsrk61ks3ivbsyg"))))
+ (build-system python-build-system)
+ (arguments
+ '(#:phases
+ (modify-phases %standard-phases
+ (replace 'check
+ (lambda* (#:key tests? #:allow-other-keys)
+ (when tests?
+ (invoke "pytest" "-vv")))))))
+ (native-inputs
+ (list python-pytest python-mercantile python-requests))
+ (home-page "https://github.com/geopandas/xyzservices")
+ (synopsis "Source of XYZ tiles providers")
+ (description "@code{xyzservices} is a lightweight library providing a
+repository of available XYZ services offering raster basemap tiles. The
+repository is provided via Python API and as a compressed JSON file.")
+ (license license:bsd-3)))
+
(define-public jube
(package
;; This is a command-line tool, so no "python-" prefix.