diff --git a/pkgs/development/python-modules/chameleon/default.nix b/pkgs/development/python-modules/chameleon/default.nix index ec6ab88447a5..3c97002f5dcd 100644 --- a/pkgs/development/python-modules/chameleon/default.nix +++ b/pkgs/development/python-modules/chameleon/default.nix @@ -2,7 +2,9 @@ , buildPythonPackage , fetchFromGitHub , setuptools +, importlib-metadata , pytestCheckHook +, pythonOlder }: buildPythonPackage rec { @@ -21,6 +23,10 @@ buildPythonPackage rec { setuptools ]; + dependencies = lib.optionals (pythonOlder "3.10") [ + importlib-metadata + ]; + nativeCheckInputs = [ pytestCheckHook ];