diff --git a/pkgs/development/python-modules/ahocorasick-rs/default.nix b/pkgs/development/python-modules/ahocorasick-rs/default.nix index 63c849e3537b..2f81eb4ccc4d 100644 --- a/pkgs/development/python-modules/ahocorasick-rs/default.nix +++ b/pkgs/development/python-modules/ahocorasick-rs/default.nix @@ -1,11 +1,13 @@ { lib, buildPythonPackage, + pythonOlder, fetchPypi, rustPlatform, pytestCheckHook, pyahocorasick, hypothesis, + typing-extensions, pytest-benchmark, }: @@ -32,6 +34,8 @@ buildPythonPackage rec { cargoSetupHook ]; + dependencies = lib.optionals (pythonOlder "3.12") [ typing-extensions ]; + nativeCheckInputs = [ pytest-benchmark pytestCheckHook