nur-packages

My NUR packages
git clone git://git.sikmir.ru/nur-packages
Log | Files | Refs | README | LICENSE

commit a4f8f0ea3283427a557ce86b696f1c3c1047e230
parent e75423d795b7940c6f40c153dc716eaa86ea0a8d
Author: Nikolay Korotkiy <sikmir@disroot.org>
Date:   Tue, 29 Mar 2022 17:58:17 +0300

Add rio-tiler

Diffstat:
Mpkgs/default.nix | 4++++
Apkgs/geospatial/pystac/default.nix | 30++++++++++++++++++++++++++++++
Apkgs/geospatial/rio-color/default.nix | 34++++++++++++++++++++++++++++++++++
Apkgs/geospatial/rio-mucho/default.nix | 28++++++++++++++++++++++++++++
Apkgs/geospatial/rio-tiler/default.nix | 37+++++++++++++++++++++++++++++++++++++
5 files changed, 133 insertions(+), 0 deletions(-)

diff --git a/pkgs/default.nix b/pkgs/default.nix @@ -179,11 +179,15 @@ lib.makeScope newScope ( pmtiles = callPackage ./geospatial/pmtiles { }; polyvectorization = libsForQt5.callPackage ./geospatial/polyvectorization { }; py-staticmaps = callPackage ./geospatial/py-staticmaps { }; + pystac = callPackage ./geospatial/pystac { }; qgis-bin = callPackage ./geospatial/qgis/bin.nix { }; qgis-ltr-bin = qgis-bin.override { releaseType = "ltr"; }; qmapshack-bin = callPackage ./geospatial/qmapshack/bin.nix { }; render_geojson = callPackage ./geospatial/render_geojson { }; + rio-color = callPackage ./geospatial/rio-color { }; rio-mbtiles = callPackage ./geospatial/rio-mbtiles { }; + rio-mucho = callPackage ./geospatial/rio-mucho { }; + rio-tiler = callPackage ./geospatial/rio-tiler { }; sasplanet-bin = callPackage ./geospatial/sasplanet/bin.nix { }; supermercado = callPackage ./geospatial/supermercado { }; tdh = callPackage ./geospatial/tdh { }; diff --git a/pkgs/geospatial/pystac/default.nix b/pkgs/geospatial/pystac/default.nix @@ -0,0 +1,30 @@ +{ lib, stdenv, fetchFromGitHub, python3Packages }: + +python3Packages.buildPythonPackage rec { + pname = "pystac"; + version = "1.4.0"; + + src = fetchFromGitHub { + owner = "stac-utils"; + repo = pname; + rev = "v${version}"; + hash = "sha256-khhiCUNiaxC744J+fZiJOXruNILOXvAwe3UNygr2M8U="; + }; + + propagatedBuildInputs = with python3Packages; [ + dateutil + ]; + + doCheck = false; + + checkInputs = with python3Packages; [ jsonschema pytestCheckHook ]; + + pythonImportsCheck = [ "pystac" ]; + + meta = with lib; { + description = "Python library for working with any SpatioTemporal Asset Catalog (STAC)"; + inherit (src.meta) homepage; + license = licenses.asl20; + maintainers = [ maintainers.sikmir ]; + }; +} diff --git a/pkgs/geospatial/rio-color/default.nix b/pkgs/geospatial/rio-color/default.nix @@ -0,0 +1,34 @@ +{ lib, stdenv, fetchFromGitHub, python3Packages, rio-mucho }: + +python3Packages.buildPythonPackage rec { + pname = "rio-color"; + version = "1.0.4"; + + src = fetchFromGitHub { + owner = "mapbox"; + repo = pname; + rev = version; + hash = "sha256-bkXDw8MW0Q+xhYbfN7vexNUzTIjT9c67e6adavQSP1A="; + }; + + nativeBuildInputs = with python3Packages; [ cython ]; + + propagatedBuildInputs = with python3Packages; [ + click + rasterio + rio-mucho + ]; + + doCheck = false; + + checkInputs = with python3Packages; [ pytestCheckHook ]; + + pythonImportsCheck = [ "rio_color" ]; + + meta = with lib; { + description = "Color correction plugin for rasterio"; + inherit (src.meta) homepage; + license = licenses.mit; + maintainers = [ maintainers.sikmir ]; + }; +} diff --git a/pkgs/geospatial/rio-mucho/default.nix b/pkgs/geospatial/rio-mucho/default.nix @@ -0,0 +1,28 @@ +{ lib, stdenv, fetchFromGitHub, python3Packages }: + +python3Packages.buildPythonPackage rec { + pname = "rio-mucho"; + version = "1.0.0"; + + src = fetchFromGitHub { + owner = "mapbox"; + repo = pname; + rev = version; + hash = "sha256-yr79Lb02vxp2CN+638S8CFxbtim+zrkjxhjwEkx0XsY="; + }; + + propagatedBuildInputs = with python3Packages; [ + click + numpy + rasterio + ]; + + checkInputs = with python3Packages; [ pytestCheckHook ]; + + meta = with lib; { + description = "Parallel processing wrapper for rasterio"; + inherit (src.meta) homepage; + license = licenses.mit; + maintainers = [ maintainers.sikmir ]; + }; +} diff --git a/pkgs/geospatial/rio-tiler/default.nix b/pkgs/geospatial/rio-tiler/default.nix @@ -0,0 +1,37 @@ +{ lib, stdenv, fetchFromGitHub, python3Packages, morecantile, pystac, rio-color }: + +python3Packages.buildPythonPackage rec { + pname = "rio-tiler"; + version = "3.1.2"; + + src = fetchFromGitHub { + owner = "cogeotiff"; + repo = pname; + rev = version; + hash = "sha256-ecY3U4VB0TkYHeUy+HGOFin+LTNsbWi87+6AIOKGW7o="; + }; + + propagatedBuildInputs = with python3Packages; [ + boto3 + numexpr + morecantile + pystac + rasterio + httpx + rio-color + cachetools + ]; + + doCheck = false; + + checkInputs = with python3Packages; [ pytestCheckHook ]; + + pythonImportsCheck = [ "rio_tiler" ]; + + meta = with lib; { + description = "User friendly Rasterio plugin to read raster datasets"; + inherit (src.meta) homepage; + license = licenses.bsd3; + maintainers = [ maintainers.sikmir ]; + }; +}