19 # optional-dependencies
32 buildPythonPackage rec {
37 disabled = pythonOlder "3.8";
39 src = fetchFromGitHub {
42 rev = "refs/tags/v${version}";
43 hash = "sha256-/VZUifiz8iImq+JLvckFDr7YMIqu0Xro2t3GFj0obg0=";
46 patches = lib.optionals (!stdenv.isDarwin) [
48 src = ./libgl-path.patch;
49 libgl = "${libGL.out}/lib/libGL${stdenv.hostPlatform.extensions.sharedLibrary}";
62 passthru.optional-dependencies = {
70 fits = lib.optionals (!isPyPy) [
96 ++ fsspec.optional-dependencies.github
97 ++ lib.flatten (builtins.attrValues passthru.optional-dependencies);
100 "-m 'not needs_internet'"
104 export IMAGEIO_USERDIR="$TMP"
108 disabledTestPaths = [
109 # tries to fetch fixtures over the network
110 "tests/test_freeimage.py"
111 "tests/test_pillow.py"
116 disabledTests = lib.optionals stdenv.isDarwin [
119 # RuntimeError: No valid H.264 encoder was found with the ffmpeg installation
120 "test_writer_file_properly_closed"
121 "test_writer_pixelformat_size_verbose"
122 "test_writer_ffmpeg_params"
127 description = "Library for reading and writing a wide range of image, video, scientific, and volumetric data formats";
128 homepage = "https://imageio.readthedocs.io";
129 changelog = "https://github.com/imageio/imageio/blob/v${version}/CHANGELOG.md";
130 license = licenses.bsd2;
131 maintainers = with maintainers; [ Luflosi ];