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" ];