nur-packages

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

default.nix (1135B)


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