nur-packages

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

default.nix (1035B)


      1 { lib, fetchFromGitHub, python3Packages, apispec-webframeworks }:
      2 
      3 python3Packages.buildPythonApplication rec {
      4   pname = "terracotta";
      5   version = "0.7.5";
      6 
      7   src = fetchFromGitHub {
      8     owner = "DHI-GRAS";
      9     repo = "terracotta";
     10     rev = "refs/tags/v${version}";
     11     hash = "sha256-Q1rn7Rm1W0itXyuph/aApP+mCSy1VybIoBdEJm6GO68=";
     12   };
     13 
     14   nativeBuildInputs = with python3Packages; [
     15     setuptools-scm
     16     setuptools-scm-git-archive
     17   ];
     18 
     19   SETUPTOOLS_SCM_PRETEND_VERSION = version;
     20 
     21   propagatedBuildInputs = with python3Packages; [
     22     apispec
     23     apispec-webframeworks
     24     cachetools
     25     click
     26     click-spinner
     27     flask
     28     flask-cors
     29     marshmallow
     30     mercantile
     31     numpy
     32     pillow
     33     pyyaml
     34     shapely
     35     rasterio
     36     toml
     37     tqdm
     38   ];
     39 
     40   doCheck = false;
     41 
     42   nativeCheckInputs = with python3Packages; [ pytestCheckHook ];
     43 
     44   meta = with lib; {
     45     description = "A light-weight, versatile XYZ tile server";
     46     inherit (src.meta) homepage;
     47     license = licenses.mit;
     48     maintainers = [ maintainers.sikmir ];
     49   };
     50 }