1{ 2 lib, 3 stdenv, 4 buildPythonPackage, 5 fetchFromGitHub, 6 pytestCheckHook, 7 pythonOlder, 8 9 attrs, 10 click, 11 flit, 12 mercantile, 13 pydantic, 14 pyproj, 15 rasterio, 16}: 17 18buildPythonPackage rec { 19 pname = "morecantile"; 20 version = "6.2.0"; 21 pyproject = true; 22 disabled = pythonOlder "3.8"; 23 24 src = fetchFromGitHub { 25 owner = "developmentseed"; 26 repo = "morecantile"; 27 tag = version; 28 hash = "sha256-ohTSgkjgaANS/Pli4fao+THA4ltts6svj5CdJEgorz0="; 29 }; 30 31 nativeBuildInputs = [ flit ]; 32 33 propagatedBuildInputs = [ 34 attrs 35 click 36 pydantic 37 pyproj 38 ]; 39 40 nativeCheckInputs = [ 41 mercantile 42 pytestCheckHook 43 rasterio 44 ]; 45 46 disabledTests = lib.optionals stdenv.hostPlatform.isDarwin [ 47 # https://github.com/developmentseed/morecantile/issues/156 48 "test_tiles_when_tms_bounds_and_provided_bounds_cross_antimeridian" 49 ]; 50 51 pythonImportsCheck = [ "morecantile" ]; 52 53 meta = { 54 description = "Construct and use map tile grids in different projection"; 55 homepage = "https://developmentseed.org/morecantile/"; 56 license = lib.licenses.mit; 57 teams = [ lib.teams.geospatial ]; 58 mainProgram = "morecantile"; 59 }; 60}