diff options
Diffstat (limited to 'nixpkgs/pkgs/development/python-modules/mercantile/default.nix')
-rw-r--r-- | nixpkgs/pkgs/development/python-modules/mercantile/default.nix | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/development/python-modules/mercantile/default.nix b/nixpkgs/pkgs/development/python-modules/mercantile/default.nix new file mode 100644 index 000000000000..e7f307361ed3 --- /dev/null +++ b/nixpkgs/pkgs/development/python-modules/mercantile/default.nix @@ -0,0 +1,28 @@ +{ lib, buildPythonPackage, fetchFromGitHub +, click +, pytestCheckHook +, hypothesis +}: + +buildPythonPackage rec { + pname = "mercantile"; + version = "1.2.1"; + + src = fetchFromGitHub { + owner = "mapbox"; + repo = pname; + rev = version; + sha256 = "sha256-DiDXO2XnD3We6NhP81z7aIHzHrHDi/nkqy98OT9986w="; + }; + + propagatedBuildInputs = [ click ]; + + checkInputs = [ pytestCheckHook hypothesis ]; + + meta = with lib; { + description = "Spherical mercator tile and coordinate utilities"; + homepage = "https://github.com/mapbox/mercantile"; + license = licenses.bsd3; + maintainers = with maintainers; [ sikmir ]; + }; +} |