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 = "2024.4.0";
15 format = "pyproject";
16
17 src = fetchPypi {
18 inherit pname version;
19 hash = "sha256-agTxFIem+3fZKpiYTNEH+9kVf9XmX5Ka3Zw9bmBO6Iw=";
20 };
21
22 nativeBuildInputs = [
23 setuptools
24 setuptools-scm
25 ];
26
27 disabledTests = [
28 # requires network connections
29 "test_free_providers"
30 ];
31
32 pythonImportsCheck = [ "xyzservices.providers" ];
33
34 nativeCheckInputs = [
35 mercantile
36 pytestCheckHook
37 requests
38 ];
39
40 meta = with lib; {
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 = licenses.bsd3;
45 maintainers = with maintainers; [ ];
46 };
47}