about summary refs log tree commit diff
path: root/pkgs
diff options
context:
space:
mode:
authorGaetan Lepage <gaetan@glepage.com>2024-06-17 14:09:41 +0200
committerGaetan Lepage <gaetan@glepage.com>2024-06-17 14:12:11 +0200
commit05eeb39ef88bd4aede3608e2188188dd173c39ee (patch)
tree4f5fb5b2ff9a7cea8d1a152bc3406d6198e7ed1d /pkgs
parent982a93db3d3e5db697e6419186c6949043ee4048 (diff)
python311Packages.rioxarray: disable failing tests on aarch64-linux
Diffstat (limited to 'pkgs')
-rw-r--r--pkgs/development/python-modules/rioxarray/default.nix28
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;
   };