nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix

python.pkgs.importlib-resources: invoke tests differently

Follow what upstream does. That solves the issue previously encountered.

+4 -2
+4 -2
pkgs/development/python-modules/importlib-resources/default.nix
··· 5 5 , typing 6 6 , isPy3k 7 7 , pythonOlder 8 + , python 8 9 }: 9 10 10 11 buildPythonPackage rec { ··· 22 21 ++ lib.optional (pythonOlder "3.5") typing 23 22 ; 24 23 25 - # https://gitlab.com/python-devs/importlib_resources/issues/69 26 - doCheck = !isPy3k; 24 + checkPhase = '' 25 + ${python.interpreter} -m unittest discover 26 + ''; 27 27 28 28 meta = with lib; { 29 29 description = "Read resources from Python packages";