default.nix (863B)
1 { lib, fetchFromGitHub, python3Packages }: 2 3 python3Packages.buildPythonPackage rec { 4 pname = "geotiler"; 5 version = "0.15.0"; 6 pyproject = true; 7 8 src = fetchFromGitHub { 9 owner = "wrobell"; 10 repo = "geotiler"; 11 rev = "geotiler-${version}"; 12 hash = "sha256-xqAsjuUMODZvkSMyGXpP1/FTyqNKPfa8l4Zr2CUHaDY="; 13 }; 14 15 propagatedBuildInputs = with python3Packages; [ aiohttp cytoolz numpy pillow setuptools ]; 16 17 nativeCheckInputs = with python3Packages; [ pytestCheckHook pytest-cov ]; 18 19 postInstall = '' 20 cp -r geotiler/source $out/lib/${python3Packages.python.libPrefix}/site-packages/geotiler 21 ''; 22 23 meta = with lib; { 24 description = "GeoTiler is a library to create map using tiles from a map provider"; 25 homepage = "https://wrobell.dcmod.org/geotiler"; 26 license = licenses.gpl3Plus; 27 maintainers = [ maintainers.sikmir ]; 28 }; 29 }