Skip to content

Commit

Permalink
Merge pull request #268651 from GaetanLepage/imageio
Browse files Browse the repository at this point in the history
python311Packages.imageio: 2.32.0 -> 2.33.0
  • Loading branch information
mweinelt authored Nov 21, 2023
2 parents e01c444 + c4d5c9a commit 0557ef0
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 15 deletions.
5 changes: 5 additions & 0 deletions pkgs/development/python-modules/av/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
, buildPythonPackage
, fetchFromGitHub
, pythonOlder
, stdenv

# build
, cython
Expand Down Expand Up @@ -101,6 +102,10 @@ buildPythonPackage rec {
"--deselect=tests/test_subtitles.py::TestSubtitle::test_movtext"
"--deselect=tests/test_subtitles.py::TestSubtitle::test_vobsub"
"--deselect=tests/test_videoframe.py::TestVideoFrameImage::test_roundtrip"
] ++ lib.optionals (stdenv.isDarwin) [
# Segmentation Faults
"--deselect=tests/test_encode.py::TestBasicVideoEncoding::test_encoding_with_pts"
"--deselect=tests/test_pyav.py::test_bayer_write"
];

disabledTests = [
Expand Down
34 changes: 19 additions & 15 deletions pkgs/development/python-modules/imageio/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@
, stdenv
, buildPythonPackage
, pythonOlder
, fetchPypi
, fetchpatch
, fetchFromGitHub
, isPyPy
, substituteAll

Expand Down Expand Up @@ -32,24 +31,19 @@

buildPythonPackage rec {
pname = "imageio";
version = "2.32.0";
version = "2.33.0";
pyproject = true;

disabled = pythonOlder "3.7";
disabled = pythonOlder "3.8";

src = fetchPypi {
inherit pname version;
hash = "sha256-5CWtNsYFMI2eptk+2nsJh5JgWbi4YiDhQqWZp5dRKN0=";
src = fetchFromGitHub {
owner = "imageio";
repo = "imageio";
rev = "refs/tags/v${version}";
hash = "sha256-WoCycrJxo0vyV9LiWnEag1wbld3EJWu8mks8TnYt2+A=";
};

patches = [
# pillow 10.1.0 compat
(fetchpatch {
name = "imageio-pillow-10.1.0-compat.patch";
url = "https://github.com/imageio/imageio/commit/f58379c1ae7fbd1da8689937b39e499e2d225740.patch";
hash = "sha256-jPSl/EUe69Dizkv8CqWpnm+TDPtF3VX2DkHOCEuYTLA=";
})
] ++ lib.optionals (!stdenv.isDarwin) [
patches = lib.optionals (!stdenv.isDarwin) [
(substituteAll {
src = ./libgl-path.patch;
libgl = "${libGL.out}/lib/libGL${stdenv.hostPlatform.extensions.sharedLibrary}";
Expand Down Expand Up @@ -119,6 +113,16 @@ buildPythonPackage rec {
"tests/test_swf.py"
];

disabledTests = lib.optionals stdenv.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 = with lib; {
description = "Library for reading and writing a wide range of image, video, scientific, and volumetric data formats";
homepage = "https://imageio.readthedocs.io";
Expand Down

0 comments on commit 0557ef0

Please sign in to comment.