default.nix (858B)
1 { 2 lib, 3 stdenv, 4 fetchFromGitHub, 5 python3Packages, 6 }: 7 8 python3Packages.buildPythonPackage rec { 9 pname = "rioxarray"; 10 version = "0.15.5"; 11 pyproject = true; 12 13 src = fetchFromGitHub { 14 owner = "corteva"; 15 repo = "rioxarray"; 16 rev = version; 17 hash = "sha256-bumFZQktgUqo2lyoLtDXkh6Vv5oS/wobqYpvNYy7La0="; 18 }; 19 20 build-system = with python3Packages; [ setuptools ]; 21 22 propagatedBuildInputs = with python3Packages; [ 23 packaging 24 rasterio 25 xarray 26 pyproj 27 numpy 28 ]; 29 30 doCheck = false; 31 nativeCheckInputs = with python3Packages; [ 32 dask 33 netcdf4 34 pytestCheckHook 35 ]; 36 37 pythonImportsCheck = [ "rioxarray" ]; 38 39 meta = with lib; { 40 description = "geospatial xarray extension powered by rasterio"; 41 inherit (src.meta) homepage; 42 license = licenses.asl20; 43 maintainers = [ maintainers.sikmir ]; 44 }; 45 }