Gaetan Lepage 2024-11-28 09:12:57 +01:00
parent 5e4f0137a8
commit 0442a9b214

View File

@ -31,14 +31,14 @@
buildPythonPackage rec {
pname = "imageio";
version = "2.36.0";
version = "2.36.1";
pyproject = true;
src = fetchFromGitHub {
owner = "imageio";
repo = "imageio";
rev = "refs/tags/v${version}";
hash = "sha256-dQrAVPXtDdibaxxfqW29qY7j5LyegvmI0Y7/btXmsyY=";
tag = "v${version}";
hash = "sha256-jHy0w+tHjoYGTgkcIvy4FnjoZ1eJrVA3JrDYapkBLhY=";
};
patches = lib.optionals (!stdenv.hostPlatform.isDarwin) [
@ -76,11 +76,14 @@ buildPythonPackage rec {
heif = [ pillow-heif ];
};
nativeCheckInputs = [
fsspec
psutil
pytestCheckHook
] ++ fsspec.optional-dependencies.github ++ lib.flatten (builtins.attrValues optional-dependencies);
nativeCheckInputs =
[
fsspec
psutil
pytestCheckHook
]
++ fsspec.optional-dependencies.github
++ lib.flatten (builtins.attrValues optional-dependencies);
pytestFlagsArray = [ "-m 'not needs_internet'" ];
@ -97,26 +100,20 @@ buildPythonPackage rec {
"tests/test_swf.py"
];
disabledTests =
[
# Pillow 11.0.0 compat
# https://github.com/imageio/imageio/issues/1104
"test_gif"
]
++ lib.optionals stdenv.hostPlatform.isDarwin [
# Segmentation fault
"test_bayer_write"
# RuntimeError: No valid H.264 encoder was found with the ffmpeg installation
"test_writer_file_properly_closed"
"test_writer_pixelformat_size_verbose"
"test_writer_ffmpeg_params"
"test_reverse_read"
];
disabledTests = lib.optionals stdenv.hostPlatform.isDarwin [
# Segmentation fault
"test_bayer_write"
# RuntimeError: No valid H.264 encoder was found with the ffmpeg installation
"test_writer_file_properly_closed"
"test_writer_pixelformat_size_verbose"
"test_writer_ffmpeg_params"
"test_reverse_read"
];
meta = {
description = "Library for reading and writing a wide range of image, video, scientific, and volumetric data formats";
homepage = "https://imageio.readthedocs.io";
changelog = "https://github.com/imageio/imageio/blob/v${version}/CHANGELOG.md";
changelog = "https://github.com/imageio/imageio/blob/${src.tag}/CHANGELOG.md";
license = lib.licenses.bsd2;
maintainers = with lib.maintainers; [ Luflosi ];
};