default.nix (931B)
1 { lib, fetchFromGitHub, python3Packages, jsonseq, supermercado }: 2 3 python3Packages.buildPythonApplication rec { 4 pname = "tilesets-cli"; 5 version = "1.7.1"; 6 7 src = fetchFromGitHub { 8 owner = "mapbox"; 9 repo = pname; 10 rev = "v${version}"; 11 hash = "sha256-nAI5mwXlJ8JKUna+2dNwMnfEJuQqTrrXW10slNkjv9w="; 12 }; 13 14 postPatch = "sed -i 's/~=.*\"/\"/' setup.py"; 15 16 propagatedBuildInputs = with python3Packages; [ 17 boto3 18 click 19 cligj 20 requests 21 requests-toolbelt 22 jsonschema 23 jsonseq 24 mercantile 25 supermercado 26 ]; 27 28 checkInputs = with python3Packages; [ pytestCheckHook ]; 29 30 installCheckPhase = "$out/bin/tilesets --version"; 31 32 meta = with lib; { 33 description = "CLI for interacting with the Mapbox Tilesets API"; 34 homepage = "https://docs.mapbox.com/mapbox-tiling-service"; 35 license = licenses.bsd2; 36 maintainers = [ maintainers.sikmir ]; 37 platforms = platforms.unix; 38 }; 39 }