From 5b47e46becbe01740e8e219e7f4489f6168a1c0e Mon Sep 17 00:00:00 2001 From: "R. Ryantm" Date: Thu, 21 Aug 2025 16:24:37 +0000 Subject: [PATCH 1/4] geos: 3.13.1 -> 3.14.0 --- pkgs/development/libraries/geos/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/libraries/geos/default.nix b/pkgs/development/libraries/geos/default.nix index a11d8097b8e8..422269bea247 100644 --- a/pkgs/development/libraries/geos/default.nix +++ b/pkgs/development/libraries/geos/default.nix @@ -10,13 +10,13 @@ stdenv.mkDerivation (finalAttrs: { pname = "geos"; - version = "3.13.1"; + version = "3.14.0"; src = fetchFromGitHub { owner = "libgeos"; repo = "geos"; tag = finalAttrs.version; - hash = "sha256-zPVP01AMIBKMnKi6Sq++CIaVZb5JA1v8/QAdGzKdL8Y="; + hash = "sha256-tPuAYNi2Gfc/2hj8SFqnvuDztXkSAEoGPcvXVULrLKg="; }; nativeBuildInputs = [ cmake ]; From 3a69acacdad1f2a648a36750923a9414e6c68e4e Mon Sep 17 00:00:00 2001 From: Ivan Mincik Date: Sat, 23 Aug 2025 11:50:23 +0200 Subject: [PATCH 2/4] python3Packages.shapely: fix tests for geos 3.14 --- .../python-modules/shapely/default.nix | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/pkgs/development/python-modules/shapely/default.nix b/pkgs/development/python-modules/shapely/default.nix index ccad45bbac48..09b8911c172f 100644 --- a/pkgs/development/python-modules/shapely/default.nix +++ b/pkgs/development/python-modules/shapely/default.nix @@ -3,6 +3,7 @@ stdenv, buildPythonPackage, fetchFromGitHub, + fetchpatch, pytestCheckHook, pythonOlder, @@ -27,6 +28,22 @@ buildPythonPackage rec { hash = "sha256-qIITlPym92wfq0byqjRxofpmYYg7vohbi1qPVEu6hRg="; }; + patches = [ + # Fix tests for GEOS 3.14 + (fetchpatch { + url = "https://github.com/shapely/shapely/commit/a561132c4e13c1fde597f56a8a7133c3c09b9928.patch"; + hash = "sha256-a9gDfw2Dw+fd82T9f0BufYd/+gxE+ALvWyLm4vHygzU="; + }) + (fetchpatch { + url = "https://github.com/shapely/shapely/commit/56e16e6eb27c54c6c24b9a251c12414e289fb7d0.patch"; + hash = "sha256-JyjPVcJswEozF4C73QotKsPou55H41Ct9oVgkxhDhbk="; + }) + (fetchpatch { + url = "https://github.com/shapely/shapely/commit/19f807961da0a14ac707e4540c91b8d60d52dd08.patch"; + hash = "sha256-3NHNiIOf9tbhFS/RAsRw1Yp/Bxy957WpsT+R5Vwp8uU="; + }) + ]; + nativeBuildInputs = [ cython geos # for geos-config From 9386ff26ad67bbe477a4d4b44a00455d0558f4fa Mon Sep 17 00:00:00 2001 From: Augustin Trancart Date: Mon, 22 Sep 2025 11:51:18 +0200 Subject: [PATCH 3/4] pythonPackages.shapely: remove already applied patch --- pkgs/development/python-modules/shapely/default.nix | 4 ---- 1 file changed, 4 deletions(-) diff --git a/pkgs/development/python-modules/shapely/default.nix b/pkgs/development/python-modules/shapely/default.nix index 09b8911c172f..ecfe86b2e352 100644 --- a/pkgs/development/python-modules/shapely/default.nix +++ b/pkgs/development/python-modules/shapely/default.nix @@ -38,10 +38,6 @@ buildPythonPackage rec { url = "https://github.com/shapely/shapely/commit/56e16e6eb27c54c6c24b9a251c12414e289fb7d0.patch"; hash = "sha256-JyjPVcJswEozF4C73QotKsPou55H41Ct9oVgkxhDhbk="; }) - (fetchpatch { - url = "https://github.com/shapely/shapely/commit/19f807961da0a14ac707e4540c91b8d60d52dd08.patch"; - hash = "sha256-3NHNiIOf9tbhFS/RAsRw1Yp/Bxy957WpsT+R5Vwp8uU="; - }) ]; nativeBuildInputs = [ From 723c21585be774432e8accaf3e23fb269fa8d7b4 Mon Sep 17 00:00:00 2001 From: Augustin Trancart Date: Fri, 26 Sep 2025 18:22:54 +0000 Subject: [PATCH 4/4] python3Packages.geopandas: fix tests for geos 3.14 --- pkgs/development/python-modules/geopandas/default.nix | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/pkgs/development/python-modules/geopandas/default.nix b/pkgs/development/python-modules/geopandas/default.nix index 3c9c36b0311b..a7f5a5012ac7 100644 --- a/pkgs/development/python-modules/geopandas/default.nix +++ b/pkgs/development/python-modules/geopandas/default.nix @@ -2,6 +2,7 @@ lib, buildPythonPackage, fetchFromGitHub, + fetchpatch, pytestCheckHook, setuptools, @@ -38,6 +39,15 @@ buildPythonPackage rec { build-system = [ setuptools ]; + patches = [ + # fix tests for geos 3.14 + # see https://github.com/geopandas/geopandas/pull/3645 + (fetchpatch { + url = "https://patch-diff.githubusercontent.com/raw/geopandas/geopandas/pull/3645.patch"; + hash = "sha256-TLJixFRR+g739PLgwhTGuwYTVJ4SRr2BMGD14CLgmcY="; + }) + ]; + dependencies = [ packaging pandas