nur-packages

My NUR packages
git clone git://git.sikmir.ru/nur-packages
Log | Files | Refs | README | LICENSE

default.nix (1169B)


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