From 477742d2c1f9bfa9c50b170521ccce3022e042fa Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Tue, 25 Nov 2025 09:12:04 +0100 Subject: [PATCH] python313Packages.timezonefinder: 8.0.0 -> 8.1.0 Changelog: https://github.com/jannikmi/timezonefinder/blob/8.1.0/CHANGELOG.rst --- .../python-modules/timezonefinder/default.nix | 24 +++++++++++-------- 1 file changed, 14 insertions(+), 10 deletions(-) diff --git a/pkgs/development/python-modules/timezonefinder/default.nix b/pkgs/development/python-modules/timezonefinder/default.nix index 07d8b00e0c6b..5f72859975a4 100644 --- a/pkgs/development/python-modules/timezonefinder/default.nix +++ b/pkgs/development/python-modules/timezonefinder/default.nix @@ -1,33 +1,31 @@ { lib, buildPythonPackage, - fetchFromGitHub, cffi, + fetchFromGitHub, flatbuffers, h3, numba, numpy, - poetry-core, + pydantic, pytestCheckHook, + pytz, setuptools, }: buildPythonPackage rec { pname = "timezonefinder"; - version = "8.0.0"; + version = "8.1.0"; pyproject = true; src = fetchFromGitHub { owner = "jannikmi"; repo = "timezonefinder"; tag = version; - hash = "sha256-AvuNsIpJBZymlJe4HLPEmHfxN1jhqPmrEgRPb3W+B3E="; + hash = "sha256-jIsS8RcbMNhj5Z/AYbNyVsbQOozbk75tXSLRqhez9Ug="; }; - build-system = [ - poetry-core - setuptools - ]; + build-system = [ setuptools ]; nativeBuildInputs = [ cffi ]; @@ -38,10 +36,16 @@ buildPythonPackage rec { numpy ]; + optional-dependencies = { + numba = [ numba ]; + pytz = [ pytz ]; + }; + nativeCheckInputs = [ - numba + pydantic pytestCheckHook - ]; + ] + ++ lib.flatten (builtins.attrValues optional-dependencies); pythonImportsCheck = [ "timezonefinder" ];