From b657712094425433e98334527dc5dcea649b9fa9 Mon Sep 17 00:00:00 2001 From: Jonathan Ringer Date: Wed, 24 Mar 2021 10:20:43 -0700 Subject: [PATCH] python3{6,7}.importlib-metadata: fix build --- .../python-modules/importlib-metadata/default.nix | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) 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;