depot/third_party/nixpkgs/pkgs/development/python-modules/mercantile/default.nix
Default email fa5436e0a7 Project import generated by Copybara.
GitOrigin-RevId: e8057b67ebf307f01bdcc8fba94d94f75039d1f6
2024-06-05 17:53:02 +02:00

36 lines
714 B
Nix

{
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 ];
};
}