diff options
-rw-r--r-- | pkgs/development/python-modules/rioxarray/default.nix | 28 |
1 files changed, 19 insertions, 9 deletions
diff --git a/pkgs/development/python-modules/rioxarray/default.nix b/pkgs/development/python-modules/rioxarray/default.nix index 5394906148c2a..1b3325e4576fd 100644 --- a/pkgs/development/python-modules/rioxarray/default.nix +++ b/pkgs/development/python-modules/rioxarray/default.nix @@ -1,18 +1,21 @@ { lib, buildPythonPackage, - fetchFromGitHub, - pytestCheckHook, pythonOlder, - - dask, - netcdf4, + fetchFromGitHub, + # build-system + setuptools, + # dependencies numpy, packaging, pyproj, rasterio, - setuptools, xarray, + # tests + dask, + netcdf4, + pytestCheckHook, + stdenv, }: buildPythonPackage rec { @@ -24,13 +27,13 @@ buildPythonPackage rec { src = fetchFromGitHub { owner = "corteva"; repo = "rioxarray"; - rev = version; + rev = "refs/tags/${version}"; hash = "sha256-bumFZQktgUqo2lyoLtDXkh6Vv5oS/wobqYpvNYy7La0="; }; build-system = [ setuptools ]; - propagatedBuildInputs = [ + dependencies = [ numpy packaging pyproj @@ -44,13 +47,20 @@ buildPythonPackage rec { pytestCheckHook ]; - disabledTests = [ "test_clip_geojson__no_drop" ]; + disabledTests = + [ "test_clip_geojson__no_drop" ] + ++ lib.optionals (stdenv.hostPlatform.system == "aarch64-linux") [ + # numerical errors + "test_clip_geojson" + "test_open_rasterio_mask_chunk_clip" + ]; pythonImportsCheck = [ "rioxarray" ]; meta = { description = "geospatial xarray extension powered by rasterio"; homepage = "https://corteva.github.io/rioxarray/"; + changelog = "https://github.com/corteva/rioxarray/releases/tag/${version}"; license = lib.licenses.asl20; maintainers = lib.teams.geospatial.members; }; |