From 9cf8b35b0c3b9f93b50d0f6830319d0d4ffe3e2f Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Sun, 20 Jul 2025 14:41:35 +0200 Subject: [PATCH] python313Packages.timezonefinder: 6.5.9 -> 6.6.2 Changelog: https://github.com/jannikmi/timezonefinder/blob/6.6.2/CHANGELOG.rst --- .../python-modules/timezonefinder/default.nix | 26 +++++++++++-------- 1 file changed, 15 insertions(+), 11 deletions(-) diff --git a/pkgs/development/python-modules/timezonefinder/default.nix b/pkgs/development/python-modules/timezonefinder/default.nix index 1a6d03167365..a844e96f36b9 100644 --- a/pkgs/development/python-modules/timezonefinder/default.nix +++ b/pkgs/development/python-modules/timezonefinder/default.nix @@ -3,27 +3,25 @@ buildPythonPackage, fetchFromGitHub, cffi, + flatbuffers, h3, numba, numpy, poetry-core, pytestCheckHook, - pythonOlder, setuptools, }: buildPythonPackage rec { pname = "timezonefinder"; - version = "6.5.9"; + version = "6.6.2"; pyproject = true; - disabled = pythonOlder "3.10"; - src = fetchFromGitHub { owner = "jannikmi"; repo = "timezonefinder"; tag = version; - hash = "sha256-LkGDR8nSGfRiBxSXugauGhe3+8RsLRPWU3oE+1c5iCk="; + hash = "sha256-5BScSnMYKPwVn4lO4qFeqPik1TAFu9AhOnmUADBW+3U="; }; build-system = [ @@ -35,6 +33,7 @@ buildPythonPackage rec { dependencies = [ cffi + flatbuffers h3 numpy ]; @@ -46,20 +45,25 @@ 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 ''; + disabledTestPaths = [ + # Don't test the archive content + "tests/test_package_contents.py" + "tests/test_integration.py" + # Don't test the example + "tests/test_example_scripts.py" + # Tests require clang extension + "tests/utils_test.py" + ]; + meta = with lib; { - changelog = "https://github.com/jannikmi/timezonefinder/blob/${src.tag}/CHANGELOG.rst"; description = "Module for finding the timezone of any point on earth (coordinates) offline"; homepage = "https://github.com/MrMinimal64/timezonefinder"; + changelog = "https://github.com/jannikmi/timezonefinder/blob/${src.tag}/CHANGELOG.rst"; license = licenses.mit; maintainers = with maintainers; [ fab ]; mainProgram = "timezonefinder";