commit 54c0d4e528ccae550a7c59338afa94685636837f
parent 986ee85ae627a6cbbe134ed30f4b20b49799e0ea
Author: Nikolay Korotkiy <sikmir@disroot.org>
Date: Sun, 22 May 2022 15:35:50 +0300
Add rio-cogeo
Diffstat:
2 files changed, 34 insertions(+), 0 deletions(-)
diff --git a/pkgs/default.nix b/pkgs/default.nix
@@ -187,6 +187,7 @@ lib.makeScope newScope (
qgis-ltr-bin = qgis-bin.override { releaseType = "ltr"; };
qmapshack-bin = callPackage ./geospatial/qmapshack/bin.nix { };
render_geojson = callPackage ./geospatial/render_geojson { };
+ rio-cogeo = callPackage ./geospatial/rio-cogeo { };
rio-color = callPackage ./geospatial/rio-color { };
rio-mbtiles = callPackage ./geospatial/rio-mbtiles { };
rio-mucho = callPackage ./geospatial/rio-mucho { };
diff --git a/pkgs/geospatial/rio-cogeo/default.nix b/pkgs/geospatial/rio-cogeo/default.nix
@@ -0,0 +1,33 @@
+{ lib, stdenv, fetchFromGitHub, python3Packages, morecantile }:
+
+python3Packages.buildPythonPackage rec {
+ pname = "rio-cogeo";
+ version = "3.2.0";
+ format = "pyproject";
+
+ src = fetchFromGitHub {
+ owner = "cogeotiff";
+ repo = pname;
+ rev = version;
+ hash = "sha256-Xv3HgQP0PQZeu59LYCt3BuAUPPzKvdHndiemoSIcUec=";
+ };
+
+ nativeBuildInputs = with python3Packages; [
+ flit-core
+ ];
+
+ propagatedBuildInputs = with python3Packages; [
+ click
+ rasterio
+ numpy
+ morecantile
+ pydantic
+ ];
+
+ meta = with lib; {
+ description = "Cloud Optimized GeoTIFF creation and validation plugin for rasterio";
+ inherit (src.meta) homepage;
+ license = licenses.bsd3;
+ maintainers = [ maintainers.sikmir ];
+ };
+}