python3Packages.imageio: fix tests

This commit is contained in:
Jonathan Ringer
2021-11-29 13:35:35 -08:00
parent 19b862bc4c
commit ced4c16f57

View File

@@ -7,6 +7,7 @@
, pillow
, psutil
, pytestCheckHook
, tifffile
}:
buildPythonPackage rec {
@@ -28,6 +29,7 @@ buildPythonPackage rec {
checkInputs = [
psutil
pytestCheckHook
tifffile
];
preCheck = ''
@@ -36,6 +38,20 @@ buildPythonPackage rec {
export HOME="$(mktemp -d)"
'';
disabledTests = [
# tries to pull remote resources, even with IMAGEIO_NO_INTERNET
"test_png_remote"
# needs git history
"test_mvolread_out_of_bytes"
"test_imiter"
"test_memory_size"
"test_legacy_write_empty"
];
disabledTestPaths = [
"tests/test_pillow.py"
];
meta = with lib; {
description = "Library for reading and writing a wide range of image, video, scientific, and volumetric data formats";
homepage = "http://imageio.github.io/";