{ lib, buildPythonPackage, fetchFromGitHub, fetchpatch, pytestCheckHook, pythonOlder, attrs, boto3, cachetools, color-operations, hatchling, httpx, morecantile, numexpr, numpy, pydantic, pystac, rasterio, rioxarray, }: buildPythonPackage rec { pname = "rio-tiler"; version = "7.2.2"; pyproject = true; disabled = pythonOlder "3.8"; src = fetchFromGitHub { owner = "cogeotiff"; repo = "rio-tiler"; rev = "refs/tags/${version}"; hash = "sha256-uVLizNkUL7wGF0vFjPXb2iW9ILVkJcbDssXtp3E8ubE="; }; build-system = [ hatchling ]; propagatedBuildInputs = [ attrs cachetools color-operations httpx morecantile numexpr numpy pydantic pystac rasterio ]; nativeCheckInputs = [ boto3 pytestCheckHook rioxarray ]; pythonImportsCheck = [ "rio_tiler" ]; meta = with lib; { description = "User friendly Rasterio plugin to read raster datasets"; homepage = "https://cogeotiff.github.io/rio-tiler/"; license = licenses.bsd3; maintainers = lib.teams.geospatial.members; # Tests broken with gdal 3.10 # https://github.com/cogeotiff/rio-tiler/issues/769 broken = true; }; }