nur-packages

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

commit 986ee85ae627a6cbbe134ed30f4b20b49799e0ea
parent 398f23958cf0da5b2c1e8f6493a7c4371d8a1a7b
Author: Nikolay Korotkiy <sikmir@disroot.org>
Date:   Sun, 22 May 2022 15:34:28 +0300

Add cogeo-mosaic

Diffstat:
Mpkgs/default.nix | 1+
Apkgs/geospatial/cogeo-mosaic/default.nix | 35+++++++++++++++++++++++++++++++++++
2 files changed, 36 insertions(+), 0 deletions(-)

diff --git a/pkgs/default.nix b/pkgs/default.nix @@ -161,6 +161,7 @@ lib.makeScope newScope ( ### GEOSPATIAL arcgis2geojson = callPackage ./geospatial/arcgis2geojson { }; + cogeo-mosaic = callPackage ./geospatial/cogeo-mosaic { }; datamaps = callPackage ./geospatial/datamaps { }; elevation = callPackage ./geospatial/elevation { click = click-6-7; diff --git a/pkgs/geospatial/cogeo-mosaic/default.nix b/pkgs/geospatial/cogeo-mosaic/default.nix @@ -0,0 +1,35 @@ +{ lib, stdenv, fetchFromGitHub, python3Packages, morecantile, supermercado, rio-tiler }: + +python3Packages.buildPythonPackage rec { + pname = "cogeo-mosaic"; + version = "4.1.0"; + + src = fetchFromGitHub { + owner = "developmentseed"; + repo = pname; + rev = version; + hash = "sha256-6pUuCEa2O0MT5UsOjnAeF1bLlnSpmuBMoZl5s8WJZoE="; + }; + + propagatedBuildInputs = with python3Packages; [ + httpx + morecantile + pygeos + cachetools + supermercado + rio-tiler + ]; + + checkInputs = with python3Packages; [ pytestCheckHook ]; + + disabledTests = [ + "test_mosaic_crud_error" # requires network access + ]; + + meta = with lib; { + description = "Create and use COG mosaic based on mosaicJSON"; + homepage = "https://developmentseed.org/cogeo-mosaic/"; + license = licenses.mit; + maintainers = [ maintainers.sikmir ]; + }; +}