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