diff options
author | OTABI Tomoya <tomoya.otabi@gmail.com> | 2024-06-20 18:39:56 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-06-20 18:39:56 +0900 |
commit | 6d83b8edb9ddaedccad8ab2f0b0efccf4ed06e07 (patch) | |
tree | a211557b46644eb7b361c593a1b980c34b86ab1c /pkgs | |
parent | 88470d6246d6e6673f17961772f889fee3504e04 (diff) | |
parent | 05eeb39ef88bd4aede3608e2188188dd173c39ee (diff) |
Merge pull request #320524 from GaetanLepage/rioxarray
python311Packages.rioxarray: disable failing tests on aarch64-linux
Diffstat (limited to 'pkgs')
-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; }; |