From ed8cb36b0fd7d7f8f23fd81cc2152cf86bcbcb10 Mon Sep 17 00:00:00 2001 From: Martin Weinelt Date: Mon, 19 May 2025 13:24:31 +0200 Subject: [PATCH] python313Packages.geopandas: fix compat with shapely 2.1.0 --- .../development/python-modules/geopandas/default.nix | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/pkgs/development/python-modules/geopandas/default.nix b/pkgs/development/python-modules/geopandas/default.nix index b9d9ad296f29..5c0c72b16c3c 100644 --- a/pkgs/development/python-modules/geopandas/default.nix +++ b/pkgs/development/python-modules/geopandas/default.nix @@ -3,6 +3,7 @@ stdenv, buildPythonPackage, fetchFromGitHub, + fetchpatch, pytestCheckHook, pythonOlder, setuptools, @@ -40,9 +41,18 @@ buildPythonPackage rec { hash = "sha256-SZizjwkx8dsnaobDYpeQm9jeXZ4PlzYyjIScnQrH63Q="; }; + patches = [ + (fetchpatch { + # Remove geom_almost_equals, because it broke with shapely 2.1.0 and is not being updated + url = "https://github.com/geopandas/geopandas/commit/0e1f871a02e9612206dcadd6817284131026f61c.patch"; + excludes = [ "CHANGELOG.md" ]; + hash = "sha256-n9AmmbjjNwV66lxDQV2hfkVVfxRgMfEGfHZT6bql684="; + }) + ]; + build-system = [ setuptools ]; - propagatedBuildInputs = [ + dependencies = [ packaging pandas pyogrio