nur-packages

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

default.nix (1150B)


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