default.nix (789B)
1 { 2 lib, 3 fetchFromGitHub, 4 python3Packages, 5 rio-mucho, 6 }: 7 8 python3Packages.buildPythonPackage rec { 9 pname = "rio-color"; 10 version = "2.0.1"; 11 12 src = fetchFromGitHub { 13 owner = "mapbox"; 14 repo = "rio-color"; 15 tag = version; 16 hash = "sha256-iJ+whIk3ANop8i712dLE0mJyDMHGnE0tic23H6f67Xg="; 17 }; 18 19 nativeBuildInputs = with python3Packages; [ cython ]; 20 21 dependencies = with python3Packages; [ 22 click 23 rasterio 24 rio-mucho 25 ]; 26 27 doCheck = false; 28 29 nativeCheckInputs = with python3Packages; [ pytestCheckHook ]; 30 31 pythonImportsCheck = [ "rio_color" ]; 32 33 meta = { 34 description = "Color correction plugin for rasterio"; 35 homepage = "https://github.com/mapbox/rio-color"; 36 license = lib.licenses.mit; 37 maintainers = [ lib.maintainers.sikmir ]; 38 }; 39 }