From d8fd1a3a5ab0731c87f183b154eb664849619cbd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Attila=20Ol=C3=A1h?= Date: Wed, 30 Apr 2025 21:34:13 +0200 Subject: [PATCH] python3Packages.timezonefinder: 6.5.7 -> 6.5.9 - Patch poetry-core to allow building with version 2. - Limit to Python 3.10+ to make sure we don't hit the related bug: https://github.com/jannikmi/timezonefinder/issues/267 --- .../python-modules/timezonefinder/default.nix | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/pkgs/development/python-modules/timezonefinder/default.nix b/pkgs/development/python-modules/timezonefinder/default.nix index e91cb13e361f..1a6d03167365 100644 --- a/pkgs/development/python-modules/timezonefinder/default.nix +++ b/pkgs/development/python-modules/timezonefinder/default.nix @@ -14,16 +14,16 @@ buildPythonPackage rec { pname = "timezonefinder"; - version = "6.5.7"; + version = "6.5.9"; pyproject = true; - disabled = pythonOlder "3.9"; + disabled = pythonOlder "3.10"; src = fetchFromGitHub { owner = "jannikmi"; repo = "timezonefinder"; tag = version; - hash = "sha256-Jo3sOFbmy+NKPL0+21rZQUXIC9WpVT1D3X2sxTC89jY="; + hash = "sha256-LkGDR8nSGfRiBxSXugauGhe3+8RsLRPWU3oE+1c5iCk="; }; build-system = [ @@ -46,6 +46,11 @@ buildPythonPackage rec { pythonImportsCheck = [ "timezonefinder" ]; + postPatch = '' + substituteInPlace pyproject.toml \ + --replace-warn '"poetry-core>=1.0.0,<2.0.0"' '"poetry-core>=1.0.0"' + ''; + preCheck = '' # Some tests need the CLI on the PATH export PATH=$out/bin:$PATH