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