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