From 96c084d982616bcff71867b22137ef96a24e1a11 Mon Sep 17 00:00:00 2001 From: Gaetan Lepage Date: Fri, 27 Mar 2026 00:16:40 +0000 Subject: [PATCH] python3Packages.rioxarray: cleanup, skip failing tests --- .../python-modules/rioxarray/default.nix | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/pkgs/development/python-modules/rioxarray/default.nix b/pkgs/development/python-modules/rioxarray/default.nix index 119838555534..9d6b609b8cba 100644 --- a/pkgs/development/python-modules/rioxarray/default.nix +++ b/pkgs/development/python-modules/rioxarray/default.nix @@ -20,7 +20,7 @@ stdenv, }: -buildPythonPackage rec { +buildPythonPackage (finalAttrs: { pname = "rioxarray"; version = "0.22.0"; pyproject = true; @@ -28,7 +28,7 @@ buildPythonPackage rec { src = fetchFromGitHub { owner = "corteva"; repo = "rioxarray"; - tag = version; + tag = finalAttrs.version; hash = "sha256-+0TJeEjAKIqi6cbLZiv14dPKW8Xza+4tn/Erzn88ZS0="; }; @@ -49,6 +49,14 @@ buildPythonPackage rec { ]; disabledTests = [ + # AssertionError: Arrays are not almost equal to 7 decimals + # Error with variable __xarray_dataarray_variable__ + "test_clip_box__auto_expand" + "test_reproject" + "test_reproject__grid_mapping" + "test_reproject__str_resample" + "test_reproject_match__pass_nodata" + # AssertionError: assert 535727386 == 535691205 "test_clip_geojson__no_drop" # Fails with GDAL 3.11 warning @@ -70,8 +78,8 @@ buildPythonPackage rec { meta = { description = "Geospatial xarray extension powered by rasterio"; homepage = "https://corteva.github.io/rioxarray/"; - changelog = "https://github.com/corteva/rioxarray/releases/tag/${version}"; + changelog = "https://github.com/corteva/rioxarray/releases/tag/${finalAttrs.version}"; license = lib.licenses.asl20; teams = [ lib.teams.geospatial ]; }; -} +})