default.nix (957B)
1 { lib, stdenv, fetchFromGitHub, python3Packages, supermercado }: 2 3 python3Packages.buildPythonApplication rec { 4 pname = "rio-mbtiles"; 5 version = "1.6.0"; 6 7 src = fetchFromGitHub { 8 owner = "mapbox"; 9 repo = "rio-mbtiles"; 10 rev = version; 11 hash = "sha256-Kje443Qqs8+Jcv3PnTrMncaoaGDdjrzTcd42NYIenuU="; 12 }; 13 14 postPatch = '' 15 substituteInPlace setup.py \ 16 --replace-fail "shapely~=1.7.0" "shapely" 17 ''; 18 19 propagatedBuildInputs = with python3Packages; [ 20 click 21 cligj 22 mercantile 23 numpy 24 supermercado 25 tqdm 26 shapely 27 ]; 28 29 nativeCheckInputs = with python3Packages; [ pytestCheckHook ]; 30 31 disabledTests = [ 32 "test_process_tile" 33 "test_export_count" 34 ]; 35 36 meta = with lib; { 37 description = "A plugin command for the Rasterio CLI that exports a raster dataset to an MBTiles 1.1 SQLite file"; 38 inherit (src.meta) homepage; 39 license = licenses.mit; 40 maintainers = [ maintainers.sikmir ]; 41 }; 42 }