about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/python-modules/mercantile/default.nix
blob: 8f496bca53c5ba673a4583bec753bb35546d8060 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
{ lib, buildPythonPackage, fetchFromGitHub
, click
, pytestCheckHook
, hypothesis
}:

buildPythonPackage rec {
  pname = "mercantile";
  version = "1.2.1";
  format = "setuptools";

  src = fetchFromGitHub {
    owner = "mapbox";
    repo = pname;
    rev = version;
    hash = "sha256-DiDXO2XnD3We6NhP81z7aIHzHrHDi/nkqy98OT9986w=";
  };

  propagatedBuildInputs = [ click ];

  nativeCheckInputs = [ pytestCheckHook hypothesis ];

  meta = with lib; {
    description = "Spherical mercator tile and coordinate utilities";
    mainProgram = "mercantile";
    homepage = "https://github.com/mapbox/mercantile";
    license = licenses.bsd3;
    maintainers = with maintainers; [ sikmir ];
  };
}