nur-packages

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

package.nix (1096B)


      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.13.0";
     14   pyproject = true;
     15 
     16   src = fetchFromGitHub {
     17     owner = "mapbox";
     18     repo = "tilesets-cli";
     19     tag = "v${version}";
     20     hash = "sha256-9IGJ3jhw2U5vZl9dG0ourxFgKV+QRf6JXT6nmvuTx7A=";
     21   };
     22 
     23   build-system = with python3Packages; [ setuptools ];
     24 
     25   dependencies = with python3Packages; [
     26     boto3
     27     click
     28     cligj
     29     numpy
     30     requests
     31     requests-toolbelt
     32     jsonschema
     33     jsonseq
     34     mercantile
     35     geojson
     36   ];
     37 
     38   pythonRelaxDeps = true;
     39 
     40   doCheck = false;
     41   nativeCheckInputs = with python3Packages; [
     42     pytestCheckHook
     43     supermercado
     44   ];
     45 
     46   passthru.tests.version = testers.testVersion { package = tilesets-cli; };
     47 
     48   meta = {
     49     description = "CLI for interacting with the Mapbox Tilesets API";
     50     homepage = "https://docs.mapbox.com/mapbox-tiling-service";
     51     license = lib.licenses.bsd2;
     52     maintainers = [ lib.maintainers.sikmir ];
     53     mainProgram = "tilesets";
     54   };
     55 }