From 0442a9b214207834a723caa3b4baa0e7d8498124 Mon Sep 17 00:00:00 2001 From: Gaetan Lepage Date: Thu, 28 Nov 2024 09:12:57 +0100 Subject: [PATCH] python312Packages.imageio: 2.36.0 -> 2.36.1 Diff: https://github.com/imageio/imageio/compare/refs/tags/v2.36.0...v2.36.1 Changelog: https://github.com/imageio/imageio/blob/v2.36.1/CHANGELOG.md --- .../python-modules/imageio/default.nix | 45 +++++++++---------- 1 file changed, 21 insertions(+), 24 deletions(-) diff --git a/pkgs/development/python-modules/imageio/default.nix b/pkgs/development/python-modules/imageio/default.nix index 8ce6d5d4f4ec7..a8f2876037d6b 100644 --- a/pkgs/development/python-modules/imageio/default.nix +++ b/pkgs/development/python-modules/imageio/default.nix @@ -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 ]; };