default.nix (1164B)
1 { lib, fetchFromGitHub, python3Packages, jsonseq, supermercado 2 , testers, tilesets-cli 3 }: 4 5 python3Packages.buildPythonApplication rec { 6 pname = "tilesets-cli"; 7 version = "1.7.1"; 8 9 src = fetchFromGitHub { 10 owner = "mapbox"; 11 repo = "tilesets-cli"; 12 rev = "v${version}"; 13 hash = "sha256-nAI5mwXlJ8JKUna+2dNwMnfEJuQqTrrXW10slNkjv9w="; 14 }; 15 16 postPatch = "sed -i 's/~=.*\"/\"/' setup.py"; 17 18 propagatedBuildInputs = with python3Packages; [ 19 boto3 20 click 21 cligj 22 requests 23 requests-toolbelt 24 jsonschema 25 jsonseq 26 mercantile 27 supermercado 28 ]; 29 30 nativeCheckInputs = with python3Packages; [ pytestCheckHook ]; 31 32 disabledTests = [ 33 "test_cli_create_private_invalid" 34 "test_cli_add_source" 35 "test_cli_upload_source_replace" 36 "test_cli_upload_source_no_replace" 37 ]; 38 39 passthru.tests.version = testers.testVersion { 40 package = tilesets-cli; 41 }; 42 43 meta = with lib; { 44 description = "CLI for interacting with the Mapbox Tilesets API"; 45 homepage = "https://docs.mapbox.com/mapbox-tiling-service"; 46 license = licenses.bsd2; 47 maintainers = [ maintainers.sikmir ]; 48 mainProgram = "tilesets"; 49 }; 50 }