1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 fetchpatch,
6 pytestCheckHook,
7 pythonOlder,
8
9 attrs,
10 boto3,
11 cachetools,
12 color-operations,
13 hatchling,
14 httpx,
15 morecantile,
16 numexpr,
17 numpy,
18 pydantic,
19 pystac,
20 rasterio,
21 rioxarray,
22}:
23
24buildPythonPackage rec {
25 pname = "rio-tiler";
26 version = "7.2.2";
27 pyproject = true;
28 disabled = pythonOlder "3.8";
29
30 src = fetchFromGitHub {
31 owner = "cogeotiff";
32 repo = "rio-tiler";
33 rev = "refs/tags/${version}";
34 hash = "sha256-uVLizNkUL7wGF0vFjPXb2iW9ILVkJcbDssXtp3E8ubE=";
35 };
36
37 build-system = [ hatchling ];
38
39 propagatedBuildInputs = [
40 attrs
41 cachetools
42 color-operations
43 httpx
44 morecantile
45 numexpr
46 numpy
47 pydantic
48 pystac
49 rasterio
50 ];
51
52 nativeCheckInputs = [
53 boto3
54 pytestCheckHook
55 rioxarray
56 ];
57
58 pythonImportsCheck = [ "rio_tiler" ];
59
60 meta = with lib; {
61 description = "User friendly Rasterio plugin to read raster datasets";
62 homepage = "https://cogeotiff.github.io/rio-tiler/";
63 license = licenses.bsd3;
64 maintainers = lib.teams.geospatial.members;
65 # Tests broken with gdal 3.10
66 # https://github.com/cogeotiff/rio-tiler/issues/769
67 broken = true;
68 };
69}