diff --git a/pkgs/development/python-modules/importlib-resources/default.nix b/pkgs/development/python-modules/importlib-resources/default.nix index 331c88a5e3a0..f5769bf0b2d9 100644 --- a/pkgs/development/python-modules/importlib-resources/default.nix +++ b/pkgs/development/python-modules/importlib-resources/default.nix @@ -5,6 +5,7 @@ , typing , isPy3k , pythonOlder +, python }: buildPythonPackage rec { @@ -21,8 +22,9 @@ buildPythonPackage rec { ++ lib.optional (pythonOlder "3.5") typing ; - # https://gitlab.com/python-devs/importlib_resources/issues/69 - doCheck = !isPy3k; + checkPhase = '' + ${python.interpreter} -m unittest discover + ''; meta = with lib; { description = "Read resources from Python packages";