From 246b0d213592c846e31a626b5b4b571bc605f8a6 Mon Sep 17 00:00:00 2001 From: daspk04 Date: Sun, 24 May 2026 20:00:10 -0500 Subject: [PATCH 1/2] python3Packages.geoarrow-rust: fix the failing tests --- .../python-modules/geoarrow-rust/default.nix | 37 ++++++++++++++++++- 1 file changed, 36 insertions(+), 1 deletion(-) diff --git a/pkgs/development/python-modules/geoarrow-rust/default.nix b/pkgs/development/python-modules/geoarrow-rust/default.nix index f7c5413a6fc4..26cc88a89d86 100644 --- a/pkgs/development/python-modules/geoarrow-rust/default.nix +++ b/pkgs/development/python-modules/geoarrow-rust/default.nix @@ -5,11 +5,21 @@ rustPlatform, pytestCheckHook, arro3-core, + obstore, + + # tests pyarrow, pyproj, numpy, pandas, geoarrow-types, + geopandas, + geodatasets, + shapely, + pyogrio, + pytest-asyncio, + arro3-io, + arro3-compute, }: let version = "0.6.1"; @@ -101,6 +111,7 @@ let dependencies = [ arro3-core pyproj + obstore ]; }; @@ -114,15 +125,39 @@ let nativeCheckInputs = [ pytestCheckHook + pytest-asyncio geoarrow-types pandas pyarrow numpy + geopandas + geodatasets + shapely + pyogrio + obstore + arro3-io + arro3-compute geoarrow-rust-core geoarrow-rust-io ]; - pytestFlags = [ "python" ]; + # use the latest test folder (skips the tests_old folder) + pytestFlags = [ "python/tests" ]; + + disabledTests = [ + # require internet access to download datasets + "test_parse_nybb" + "test_parse_nybb_chunked" + "test_getitem" + "test_geo_interface_polygon" + "test_parquet_file" + ]; + + # fix the directory name, as it is named as source for nix build + postPatch = '' + substituteInPlace python/tests/utils.py \ + --replace-fail 'while current_dir.stem != "geoarrow-rs":' 'while current_dir.stem != "source":' + ''; }; in { From 30575c536be8237607e568c4e8236a20e3c2f78f Mon Sep 17 00:00:00 2001 From: Gaetan Lepage Date: Mon, 25 May 2026 07:20:52 +0000 Subject: [PATCH 2/2] python3Packages.geoarrow-rust: sort entries --- .../python-modules/geoarrow-rust/default.nix | 42 +++++++++---------- 1 file changed, 21 insertions(+), 21 deletions(-) diff --git a/pkgs/development/python-modules/geoarrow-rust/default.nix b/pkgs/development/python-modules/geoarrow-rust/default.nix index 26cc88a89d86..8bb08b06c22b 100644 --- a/pkgs/development/python-modules/geoarrow-rust/default.nix +++ b/pkgs/development/python-modules/geoarrow-rust/default.nix @@ -8,18 +8,18 @@ obstore, # tests - pyarrow, - pyproj, + arro3-compute, + arro3-io, + geoarrow-types, + geodatasets, + geopandas, numpy, pandas, - geoarrow-types, - geopandas, - geodatasets, - shapely, + pyarrow, pyogrio, + pyproj, pytest-asyncio, - arro3-io, - arro3-compute, + shapely, }: let version = "0.6.1"; @@ -110,8 +110,8 @@ let pythonImportsCheck = [ "geoarrow.rust.io" ]; dependencies = [ arro3-core - pyproj obstore + pyproj ]; }; @@ -124,21 +124,21 @@ let dontInstall = true; nativeCheckInputs = [ - pytestCheckHook - pytest-asyncio - geoarrow-types - pandas - pyarrow - numpy - geopandas - geodatasets - shapely - pyogrio - obstore - arro3-io arro3-compute + arro3-io geoarrow-rust-core geoarrow-rust-io + geoarrow-types + geodatasets + geopandas + numpy + obstore + pandas + pyarrow + pyogrio + pytest-asyncio + pytestCheckHook + shapely ]; # use the latest test folder (skips the tests_old folder)