default.nix (944B)
1 { 2 lib, 3 stdenv, 4 fetchFromGitHub, 5 python3Packages, 6 morecantile, 7 pystac, 8 color-operations, 9 rioxarray, 10 }: 11 12 python3Packages.buildPythonPackage rec { 13 pname = "rio-tiler"; 14 version = "6.6.1"; 15 pyproject = true; 16 17 src = fetchFromGitHub { 18 owner = "cogeotiff"; 19 repo = "rio-tiler"; 20 rev = version; 21 hash = "sha256-MR6kyoGM3uXt6JiIEfGcsmTmxqlLxUF9Wn+CFuK5LtQ="; 22 }; 23 24 build-system = with python3Packages; [ hatchling ]; 25 26 propagatedBuildInputs = with python3Packages; [ 27 boto3 28 numexpr 29 morecantile 30 pystac 31 rasterio 32 httpx 33 cachetools 34 color-operations 35 ]; 36 37 nativeCheckInputs = with python3Packages; [ 38 pytestCheckHook 39 rioxarray 40 ]; 41 42 pythonImportsCheck = [ "rio_tiler" ]; 43 44 meta = with lib; { 45 description = "User friendly Rasterio plugin to read raster datasets"; 46 inherit (src.meta) homepage; 47 license = licenses.bsd3; 48 maintainers = [ maintainers.sikmir ]; 49 }; 50 }