From a89d1312990957d86d8b1e0798eb95e29af21b4b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20Sch=C3=BCtz?= Date: Sun, 9 Feb 2025 14:30:07 -0800 Subject: [PATCH 1/4] python313Packages.av: 13.1.0 -> 14.1.0 Diff: https://github.com/PyAV-Org/PyAV/compare/refs/tags/v13.1.0...v14.1.0 Changelog: https://github.com/PyAV-Org/PyAV/blob/v14.1.0/CHANGELOG.rst --- pkgs/development/python-modules/av/default.nix | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/pkgs/development/python-modules/av/default.nix b/pkgs/development/python-modules/av/default.nix index 3681904179e9..f123d3ccdd50 100644 --- a/pkgs/development/python-modules/av/default.nix +++ b/pkgs/development/python-modules/av/default.nix @@ -17,7 +17,7 @@ buildPythonPackage rec { pname = "av"; - version = "13.1.0"; + version = "14.1.0"; pyproject = true; disabled = pythonOlder "3.9"; @@ -26,7 +26,7 @@ buildPythonPackage rec { owner = "PyAV-Org"; repo = "PyAV"; tag = "v${version}"; - hash = "sha256-x2a9SC4uRplC6p0cD7fZcepFpRidbr6JJEEOaGSWl60="; + hash = "sha256-GYdt6KMMmDSyby447MbShL2GbrH8R1UuOeiVlztGuS4="; }; build-system = [ @@ -57,11 +57,6 @@ buildPythonPackage rec { pytestCheckHook ]; - disabledTests = [ - # av.error.InvalidDataError: [Errno 1094995529] Invalid data found when processing input: 'custom_io_output.mpd' - "test_writing_to_custom_io_dash" - ]; - # `__darwinAllowLocalNetworking` doesn’t work for these; not sure why. disabledTestPaths = lib.optionals stdenv.hostPlatform.isDarwin [ "tests/test_timeout.py" @@ -78,7 +73,6 @@ buildPythonPackage rec { "av.datasets" "av.descriptor" "av.dictionary" - "av.enum" "av.error" "av.filter" "av.format" From e2afb89c2a112ba5dedd03c6163a70949fb8837e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20Sch=C3=BCtz?= Date: Mon, 10 Feb 2025 09:42:55 -0800 Subject: [PATCH 2/4] python313Packages.manim: mark broken with PyAV v14 --- pkgs/development/python-modules/manim/default.nix | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pkgs/development/python-modules/manim/default.nix b/pkgs/development/python-modules/manim/default.nix index 0fb223a910ca..5bdef09abcbb 100644 --- a/pkgs/development/python-modules/manim/default.nix +++ b/pkgs/development/python-modules/manim/default.nix @@ -266,6 +266,8 @@ buildPythonPackage rec { pythonImportsCheck = [ "manim" ]; meta = { + # https://github.com/ManimCommunity/manim/pull/4037 + broken = lib.versionAtLeast av.version "14"; description = "Animation engine for explanatory math videos - Community version"; longDescription = '' Manim is an animation engine for explanatory math videos. It's used to From 6b50213aa58f9c575b144cabf42ab18ec06c05c3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20Sch=C3=BCtz?= Date: Sun, 16 Feb 2025 13:09:02 -0800 Subject: [PATCH 3/4] home-assistant: pin av to version 13.1.0 --- pkgs/servers/home-assistant/default.nix | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/pkgs/servers/home-assistant/default.nix b/pkgs/servers/home-assistant/default.nix index 23f28b18597d..83d22add1d88 100644 --- a/pkgs/servers/home-assistant/default.nix +++ b/pkgs/servers/home-assistant/default.nix @@ -108,6 +108,16 @@ let }; }); + av = super.av.overridePythonAttrs (rec { + version = "13.1.0"; + src = fetchFromGitHub { + owner = "PyAV-Org"; + repo = "PyAV"; + tag = "v${version}"; + hash = "sha256-x2a9SC4uRplC6p0cD7fZcepFpRidbr6JJEEOaGSWl60="; + }; + }); + eq3btsmart = super.eq3btsmart.overridePythonAttrs (oldAttrs: rec { version = "1.4.1"; src = fetchFromGitHub { From eff11c8bc5dd2dddc35a08242c71e1677d442f20 Mon Sep 17 00:00:00 2001 From: Martin Weinelt Date: Mon, 17 Feb 2025 16:21:32 +0100 Subject: [PATCH 4/4] home-assistant-component-tests.stream: disable failing test This test crashes the python interpreter in libx265_encode_stream: ``` #0 0x00007feefe2a7a7e in free () from /nix/store/81mi7m3k3wsiz9rrrg636sx21psj20hc-glibc-2.40-66/lib/libc.so.6 No symbol table info available. #1 0x00007fee98059295 in av_free (ptr=) at libavutil/mem.c:243 No locals. #2 0x00007fee98059352 in av_freep (arg=) at libavutil/mem.c:253 val = #3 0x00007fee997a4713 in libx265_encode_frame (avctx=, pkt=, pic=, got_packet=0x7ffe35c7e3f4) at libavcodec/libx265.c:821 [...] #4 0x00007fee99526ff6 in ff_encode_encode_cb (avctx=avctx@entry=0x16d1f00, avpkt=avpkt@entry=0x16ad440, frame=0x16f5e80, got_packet=got_packet@entry=0x7ffe35c7e3f4) at libavcodec/encode.c:254 codec = 0x7fee9a25e5c0 [...] ``` --- pkgs/servers/home-assistant/tests.nix | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pkgs/servers/home-assistant/tests.nix b/pkgs/servers/home-assistant/tests.nix index a45707b4cdb6..9660ad0f6424 100644 --- a/pkgs/servers/home-assistant/tests.nix +++ b/pkgs/servers/home-assistant/tests.nix @@ -67,6 +67,10 @@ let # tries to retrieve file from github "test_non_text_stdout_capture" ]; + stream = [ + # crashes with x265>=4.0 + "test_h265_video_is_hvc1" + ]; websocket_api = [ # AssertionError: assert 'unknown_error' == 'template_error' "test_render_template_with_timeout"