nur-packages

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

default.nix (1438B)


      1 {
      2   lib,
      3   stdenv,
      4   python3Packages,
      5   fetchFromGitHub,
      6   gobject-introspection,
      7   pango,
      8   thinplatespline,
      9   maprec,
     10   ozi-map,
     11   pyimagequant,
     12   wrapGAppsHook,
     13 }:
     14 
     15 python3Packages.buildPythonApplication {
     16   pname = "map-tiler";
     17   version = "0-unstable-2022-08-06";
     18   pyproject = true;
     19 
     20   src = fetchFromGitHub {
     21     owner = "wladich";
     22     repo = "map-tiler";
     23     rev = "5554d207730e2cbcb59004a50c83c9420769a49c";
     24     hash = "sha256-suBS0jCGX09mY2fc2UsWr1ptySZkA68Kp6iSIJQeWuA=";
     25   };
     26 
     27   postPatch = ''
     28     substituteInPlace setup.cfg \
     29       --replace-fail " @ git+https://github.com/wladich/thinplatespline.git" "" \
     30       --replace-fail " @ git+https://github.com/wladich/maprec.git" "" \
     31       --replace-fail " @ git+https://github.com/wladich/ozi_map.git" "" \
     32       --replace-fail " @ git+https://github.com/wladich/pyimagequant.git" ""
     33   '';
     34 
     35   build-system = with python3Packages; [ setuptools ];
     36 
     37   nativeBuildInputs = [
     38     gobject-introspection
     39     wrapGAppsHook
     40   ];
     41 
     42   buildInputs = [
     43     gobject-introspection
     44     pango
     45   ];
     46 
     47   dependencies = with python3Packages; [
     48     pyyaml
     49     pyproj
     50     pypng
     51     pillow
     52     pycairo
     53     thinplatespline
     54     maprec
     55     ozi-map
     56     pyimagequant
     57     pygobject3
     58   ];
     59 
     60   doCheck = false;
     61 
     62   meta = {
     63     description = "Raster maps to map tiles";
     64     homepage = "https://github.com/wladich/map-tiler";
     65     license = lib.licenses.free;
     66     maintainers = [ lib.maintainers.sikmir ];
     67   };
     68 }