default.nix (687B)
1 { lib, fetchFromGitHub, python3Packages }: 2 3 python3Packages.buildPythonPackage rec { 4 pname = "pysheds"; 5 version = "0.3.3"; 6 7 src = fetchFromGitHub { 8 owner = "mdbartos"; 9 repo = "pysheds"; 10 rev = version; 11 hash = "sha256-p3m4FLj8nOh6EWXUqhqvc3jGwjR8/tr/ULyx6WSiAl0="; 12 }; 13 14 propagatedBuildInputs = with python3Packages; [ 15 scikitimage 16 affine 17 geojson 18 rasterio 19 pyproj 20 numba 21 ]; 22 23 nativeCheckInputs = with python3Packages; [ pytestCheckHook ]; 24 25 meta = with lib; { 26 description = "Simple and fast watershed delineation in python"; 27 inherit (src.meta) homepage; 28 license = licenses.gpl3; 29 maintainers = [ maintainers.sikmir ]; 30 }; 31 }