nur-packages

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

package.nix (1221B)


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