default.nix (1023B)
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 postPatch = "sed -i 's/~=.*\"/\"/' setup.py"; 23 24 dependencies = with python3Packages; [ 25 boto3 26 click 27 cligj 28 numpy 29 requests 30 requests-toolbelt 31 jsonschema 32 jsonseq 33 mercantile 34 geojson 35 ]; 36 37 nativeCheckInputs = with python3Packages; [ 38 pytestCheckHook 39 supermercado 40 ]; 41 42 passthru.tests.version = testers.testVersion { package = tilesets-cli; }; 43 44 meta = { 45 description = "CLI for interacting with the Mapbox Tilesets API"; 46 homepage = "https://docs.mapbox.com/mapbox-tiling-service"; 47 license = lib.licenses.bsd2; 48 maintainers = [ lib.maintainers.sikmir ]; 49 mainProgram = "tilesets"; 50 }; 51 }