mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-01 07:01:54 +00:00
python.pkgs.importlib-resources: invoke tests differently
Follow what upstream does. That solves the issue previously encountered.
This commit is contained in:
parent
245f7fb1fc
commit
e039310f96
@ -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";
|
||||
|
Loading…
Reference in New Issue
Block a user