package.nix (1122B)
1 { 2 lib, 3 fetchFromGitHub, 4 python3Packages, 5 }: 6 7 python3Packages.buildPythonPackage (finalAttrs: { 8 pname = "geotiler"; 9 version = "0.15.1"; 10 pyproject = true; 11 12 src = fetchFromGitHub { 13 owner = "wrobell"; 14 repo = "geotiler"; 15 tag = "geotiler-${finalAttrs.version}"; 16 hash = "sha256-fiY5cJIus4eLzSfqVjZfmco4pFABYWNPVUOXGGYPEso="; 17 }; 18 19 build-system = with python3Packages; [ 20 setuptools_80 21 ]; 22 23 dependencies = with python3Packages; [ 24 aiohttp 25 cytoolz 26 numpy 27 pillow 28 setuptools_80 29 ]; 30 31 nativeCheckInputs = with python3Packages; [ 32 pytestCheckHook 33 pytest-asyncio 34 pytest-cov-stub 35 ]; 36 37 disabledTests = [ 38 "test_redis_downloader_and_cache" 39 "test_render_image" 40 "test_render_image_error" 41 ]; 42 43 postInstall = '' 44 cp -r geotiler/source $out/lib/${python3Packages.python.libPrefix}/site-packages/geotiler 45 ''; 46 47 meta = { 48 description = "GeoTiler is a library to create map using tiles from a map provider"; 49 homepage = "https://wrobell.dcmod.org/geotiler"; 50 license = lib.licenses.gpl3Plus; 51 maintainers = [ lib.maintainers.sikmir ]; 52 }; 53 })
