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