nur-packages

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

default.nix (1181B)


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