commit 0391d0641429545fc587c2cbccbcda1f476a1174
parent 554fc957e4999bd703c4de6767ad2b7e01413366
Author: Nikolay Korotkiy <sikmir@gmail.com>
Date: Tue, 18 May 2021 22:20:32 +0300
Add morecantile
Diffstat:
2 files changed, 27 insertions(+), 0 deletions(-)
diff --git a/pkgs/default.nix b/pkgs/default.nix
@@ -101,6 +101,7 @@ lib.makeScope newScope (
lru-dict = callPackage ./development/python-modules/lru-dict { };
mercantile = callPackage ./development/python-modules/mercantile { };
mikatools = callPackage ./development/python-modules/mikatools { };
+ morecantile = callPackage ./development/python-modules/morecantile { };
pymbtiles = callPackage ./development/python-modules/pymbtiles { };
python-hfst = callPackage ./development/python-modules/python-hfst { };
rasterio = callPackage ./development/python-modules/rasterio { };
diff --git a/pkgs/development/python-modules/morecantile/default.nix b/pkgs/development/python-modules/morecantile/default.nix
@@ -0,0 +1,26 @@
+{ lib, fetchFromGitHub, python3Packages, mercantile, rasterio }:
+
+python3Packages.buildPythonPackage rec {
+ pname = "morecantile";
+ version = "2.1.1";
+
+ src = fetchFromGitHub {
+ owner = "developmentseed";
+ repo = pname;
+ rev = version;
+ hash = "sha256-JX8wwR1I7+6qQq4OBJakQZx/uVkyJeaTjDZPWZeD+7I=";
+ };
+
+ propagatedBuildInputs = with python3Packages; [ pydantic rasterio ];
+
+ checkInputs = with python3Packages; [ mercantile pytestCheckHook ];
+
+ installCheckPhase = "$out/bin/morecantile --version";
+
+ meta = with lib; {
+ description = "Construct and use map tile grids in different projection";
+ homepage = "https://developmentseed.org/morecantile/";
+ license = licenses.mit;
+ maintainers = [ maintainers.sikmir ];
+ };
+}