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