default.nix (1362B)
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 19 src = fetchFromGitHub { 20 owner = "wladich"; 21 repo = "map-tiler"; 22 rev = "5554d207730e2cbcb59004a50c83c9420769a49c"; 23 hash = "sha256-suBS0jCGX09mY2fc2UsWr1ptySZkA68Kp6iSIJQeWuA="; 24 }; 25 26 postPatch = '' 27 substituteInPlace setup.cfg \ 28 --replace-fail " @ git+https://github.com/wladich/thinplatespline.git" "" \ 29 --replace-fail " @ git+https://github.com/wladich/maprec.git" "" \ 30 --replace-fail " @ git+https://github.com/wladich/ozi_map.git" "" \ 31 --replace-fail " @ git+https://github.com/wladich/pyimagequant.git" "" 32 ''; 33 34 nativeBuildInputs = [ 35 gobject-introspection 36 wrapGAppsHook 37 ]; 38 39 buildInputs = [ 40 gobject-introspection 41 pango 42 ]; 43 44 dependencies = with python3Packages; [ 45 pyyaml 46 pyproj 47 pypng 48 pillow 49 pycairo 50 thinplatespline 51 maprec 52 ozi_map 53 pyimagequant 54 pygobject3 55 ]; 56 57 doCheck = false; 58 59 meta = { 60 description = "Raster maps to map tiles"; 61 homepage = "https://github.com/wladich/map-tiler"; 62 license = lib.licenses.free; 63 maintainers = [ lib.maintainers.sikmir ]; 64 }; 65 }