1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 click, 6 pytestCheckHook, 7 hypothesis, 8}: 9 10buildPythonPackage rec { 11 pname = "mercantile"; 12 version = "1.2.1"; 13 format = "setuptools"; 14 15 src = fetchFromGitHub { 16 owner = "mapbox"; 17 repo = "mercantile"; 18 rev = version; 19 hash = "sha256-DiDXO2XnD3We6NhP81z7aIHzHrHDi/nkqy98OT9986w="; 20 }; 21 22 propagatedBuildInputs = [ click ]; 23 24 nativeCheckInputs = [ 25 pytestCheckHook 26 hypothesis 27 ]; 28 29 meta = with lib; { 30 description = "Spherical mercator tile and coordinate utilities"; 31 mainProgram = "mercantile"; 32 homepage = "https://github.com/mapbox/mercantile"; 33 license = licenses.bsd3; 34 maintainers = with maintainers; [ sikmir ]; 35 }; 36}