default.nix (927B)
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 = pname; 10 rev = version; 11 hash = "sha256-Kje443Qqs8+Jcv3PnTrMncaoaGDdjrzTcd42NYIenuU="; 12 }; 13 14 propagatedBuildInputs = with python3Packages; [ 15 click 16 cligj 17 mercantile 18 numpy 19 supermercado 20 tqdm 21 shapely 22 ]; 23 24 checkInputs = with python3Packages; [ pytestCheckHook ]; 25 26 disabledTests = [ "test_cutline_progress_bar" ]; 27 28 meta = with lib; { 29 description = "A plugin command for the Rasterio CLI that exports a raster dataset to an MBTiles 1.1 SQLite file"; 30 inherit (src.meta) homepage; 31 license = licenses.mit; 32 maintainers = [ maintainers.sikmir ]; 33 platforms = platforms.unix; 34 broken = stdenv.isDarwin; # https://github.com/NixOS/nixpkgs/issues/137678 35 }; 36 }