nur-packages

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

commit 6a7e2b44172a400461a741e3c55871106a3db1b1
parent 1acdab841cd7d7b24e1328b5ea789e49cbc1e420
Author: Nikolay Korotkiy <sikmir@disroot.org>
Date:   Sun, 18 Dec 2022 03:38:27 +0300

Add pysheds

Diffstat:
Mpkgs/default.nix | 1+
Apkgs/geospatial/pysheds/default.nix | 31+++++++++++++++++++++++++++++++
2 files changed, 32 insertions(+), 0 deletions(-)

diff --git a/pkgs/default.nix b/pkgs/default.nix @@ -198,6 +198,7 @@ lib.makeScope newScope ( pipfile = callPackage ./geospatial/pipfile { }; polyvectorization = libsForQt5.callPackage ./geospatial/polyvectorization { }; py-staticmaps = callPackage ./geospatial/py-staticmaps { }; + pysheds = callPackage ./geospatial/pysheds { }; pystac = callPackage ./geospatial/pystac { }; qmapshack-bin = callPackage ./geospatial/qmapshack/bin.nix { }; render_geojson = callPackage ./geospatial/render_geojson { }; diff --git a/pkgs/geospatial/pysheds/default.nix b/pkgs/geospatial/pysheds/default.nix @@ -0,0 +1,31 @@ +{ lib, fetchFromGitHub, python3Packages }: + +python3Packages.buildPythonPackage rec { + pname = "pysheds"; + version = "0.3.3"; + + src = fetchFromGitHub { + owner = "mdbartos"; + repo = "pysheds"; + rev = version; + hash = "sha256-p3m4FLj8nOh6EWXUqhqvc3jGwjR8/tr/ULyx6WSiAl0="; + }; + + propagatedBuildInputs = with python3Packages; [ + scikitimage + affine + geojson + rasterio + pyproj + numba + ]; + + checkInputs = with python3Packages; [ pytestCheckHook ]; + + meta = with lib; { + description = "Simple and fast watershed delineation in python"; + inherit (src.meta) homepage; + license = licenses.gpl3; + maintainers = [ maintainers.sikmir ]; + }; +}