1{
2 lib,
3 buildPythonPackage,
4 fetchPypi,
5 mercantile,
6 pytestCheckHook,
7 requests,
8 setuptools,
9 setuptools-scm,
10}:
11
12buildPythonPackage rec {
13 pname = "xyzservices";
14 version = "2025.4.0";
15 pyproject = true;
16
17 src = fetchPypi {
18 inherit pname version;
19 hash = "sha256-b+dkcTZI+sU0UPvGGjw2bLauUzWhsq4MN5a0ld43Cdg=";
20 };
21
22 nativeBuildInputs = [
23 setuptools
24 setuptools-scm
25 ];
26
27 disabledTestMarks = [
28 # requires network connections
29 "request"
30 ];
31
32 pythonImportsCheck = [ "xyzservices.providers" ];
33
34 nativeCheckInputs = [
35 mercantile
36 pytestCheckHook
37 requests
38 ];
39
40 meta = {
41 changelog = "https://github.com/geopandas/xyzservices/releases/tag/${version}";
42 description = "Source of XYZ tiles providers";
43 homepage = "https://github.com/geopandas/xyzservices";
44 license = lib.licenses.bsd3;
45 teams = [ lib.teams.geospatial ];
46 };
47}