depot/third_party/nixpkgs/pkgs/development/python-modules/rioxarray/default.nix
Default email fa5436e0a7 Project import generated by Copybara.
GitOrigin-RevId: e8057b67ebf307f01bdcc8fba94d94f75039d1f6
2024-06-05 17:53:02 +02:00

57 lines
980 B
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
pytestCheckHook,
pythonOlder,
dask,
netcdf4,
numpy,
packaging,
pyproj,
rasterio,
setuptools,
xarray,
}:
buildPythonPackage rec {
pname = "rioxarray";
version = "0.15.5";
pyproject = true;
disabled = pythonOlder "3.10";
src = fetchFromGitHub {
owner = "corteva";
repo = "rioxarray";
rev = version;
hash = "sha256-bumFZQktgUqo2lyoLtDXkh6Vv5oS/wobqYpvNYy7La0=";
};
build-system = [ setuptools ];
propagatedBuildInputs = [
numpy
packaging
pyproj
rasterio
xarray
];
nativeCheckInputs = [
dask
netcdf4
pytestCheckHook
];
disabledTests = [ "test_clip_geojson__no_drop" ];
pythonImportsCheck = [ "rioxarray" ];
meta = {
description = "geospatial xarray extension powered by rasterio";
homepage = "https://corteva.github.io/rioxarray/";
license = lib.licenses.asl20;
maintainers = lib.teams.geospatial.members;
};
}