default.nix (974B)
1 { 2 lib, 3 fetchFromGitHub, 4 python3Packages, 5 jsonseq, 6 supermercado, 7 testers, 8 tilesets-cli, 9 }: 10 11 python3Packages.buildPythonApplication rec { 12 pname = "tilesets-cli"; 13 version = "1.10.0"; 14 15 src = fetchFromGitHub { 16 owner = "mapbox"; 17 repo = "tilesets-cli"; 18 rev = "v${version}"; 19 hash = "sha256-ZAPoHtrUA+D1mjWGJ/YvErYmWiXMS+tsPG+CokB9Iy8="; 20 }; 21 22 dependencies = with python3Packages; [ 23 boto3 24 click 25 cligj 26 numpy 27 requests 28 requests-toolbelt 29 jsonschema 30 jsonseq 31 mercantile 32 geojson 33 ]; 34 35 nativeCheckInputs = with python3Packages; [ 36 pytestCheckHook 37 supermercado 38 ]; 39 40 passthru.tests.version = testers.testVersion { package = tilesets-cli; }; 41 42 meta = { 43 description = "CLI for interacting with the Mapbox Tilesets API"; 44 homepage = "https://docs.mapbox.com/mapbox-tiling-service"; 45 license = lib.licenses.bsd2; 46 maintainers = [ lib.maintainers.sikmir ]; 47 mainProgram = "tilesets"; 48 }; 49 }