diff --git a/pkgs/development/python-modules/importlib-metadata/default.nix b/pkgs/development/python-modules/importlib-metadata/default.nix index 95f1ccc0bfc5..4149de3f43ae 100644 --- a/pkgs/development/python-modules/importlib-metadata/default.nix +++ b/pkgs/development/python-modules/importlib-metadata/default.nix @@ -3,6 +3,7 @@ , fetchPypi , pythonOlder , setuptools-scm +, typing-extensions , toml , zipp }: @@ -20,7 +21,12 @@ buildPythonPackage rec { nativeBuildInputs = [ setuptools-scm ]; - propagatedBuildInputs = [ toml zipp ]; + propagatedBuildInputs = [ + toml + zipp + ] ++ lib.optionals (pythonOlder "3.8") [ + typing-extensions + ]; # Cyclic dependencies due to pyflakefs doCheck = false;