nur-packages

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

package.nix (1112B)


      1 {
      2   lib,
      3   fetchFromGitHub,
      4   python3Packages,
      5   jsonseq,
      6   supermercado,
      7   testers,
      8 }:
      9 
     10 python3Packages.buildPythonApplication (finalAttrs: {
     11   pname = "tilesets-cli";
     12   version = "1.13.0";
     13   pyproject = true;
     14 
     15   src = fetchFromGitHub {
     16     owner = "mapbox";
     17     repo = "tilesets-cli";
     18     tag = "v${finalAttrs.version}";
     19     hash = "sha256-9IGJ3jhw2U5vZl9dG0ourxFgKV+QRf6JXT6nmvuTx7A=";
     20   };
     21 
     22   build-system = with python3Packages; [ setuptools ];
     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   pythonRelaxDeps = true;
     38 
     39   doCheck = false;
     40   nativeCheckInputs = with python3Packages; [
     41     pytestCheckHook
     42     supermercado
     43   ];
     44 
     45   passthru.tests.version = testers.testVersion { package = finalAttrs.finalPackage; };
     46 
     47   meta = {
     48     description = "CLI for interacting with the Mapbox Tilesets API";
     49     homepage = "https://docs.mapbox.com/mapbox-tiling-service";
     50     license = lib.licenses.bsd2;
     51     maintainers = [ lib.maintainers.sikmir ];
     52     mainProgram = "tilesets";
     53   };
     54 })