From e039310f9673d8e4d4975c0aa97e7b294536e4b5 Mon Sep 17 00:00:00 2001 From: Frederik Rietdijk Date: Thu, 27 Dec 2018 09:22:53 +0100 Subject: [PATCH] python.pkgs.importlib-resources: invoke tests differently Follow what upstream does. That solves the issue previously encountered. --- .../python-modules/importlib-resources/default.nix | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/pkgs/development/python-modules/importlib-resources/default.nix b/pkgs/development/python-modules/importlib-resources/default.nix index 331c88a5e3a..f5769bf0b2d 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";