From a712faddf2422ca92cb7fe0429cf3e7b1505a6c1 Mon Sep 17 00:00:00 2001 From: Gaetan Lepage Date: Thu, 14 May 2026 20:09:54 +0000 Subject: [PATCH] python3Packages.torchcodec: 0.11.1 -> 0.14.0 Diff: https://github.com/meta-pytorch/torchcodec/compare/v0.11.1...v0.14.0 Changelog: https://github.com/meta-pytorch/torchcodec/releases/tag/v0.14.0 Co-authored-by: Luna Nova --- .../python-modules/torchcodec/default.nix | 18 +++++++++++++++--- 1 file changed, 15 insertions(+), 3 deletions(-) diff --git a/pkgs/development/python-modules/torchcodec/default.nix b/pkgs/development/python-modules/torchcodec/default.nix index a6213d827649..07ad8ff72b81 100644 --- a/pkgs/development/python-modules/torchcodec/default.nix +++ b/pkgs/development/python-modules/torchcodec/default.nix @@ -26,14 +26,15 @@ buildPythonPackage.override { inherit (torch) stdenv; } (finalAttrs: { pname = "torchcodec"; - version = "0.11.1"; + version = "0.14.0"; pyproject = true; + __structuredAttrs = true; src = fetchFromGitHub { owner = "meta-pytorch"; repo = "torchcodec"; tag = "v${finalAttrs.version}"; - hash = "sha256-aYQp9vEVQJgF1n/KsfnDvLQf5nD0/gsG+RAgVlhk7t8="; + hash = "sha256-eGof2Rk/dGYPlKVRSuJ+ZeeMh2u4K6/qXmROo187HTA="; }; postPatch = '' @@ -60,6 +61,9 @@ buildPythonPackage.override { inherit (torch) stdenv; } (finalAttrs: { ] ++ lib.optionals cudaSupport [ cudaPackages.cuda_nvcc + ] + ++ lib.optionals rocmSupport [ + torch.rocmPackages.clr ]; buildInputs = [ @@ -110,7 +114,15 @@ buildPythonPackage.override { inherit (torch) stdenv; } (finalAttrs: { ]; disabledTests = - lib.optionals (stdenv.hostPlatform.isLinux && stdenv.hostPlatform.isAarch64) [ + lib.optionals rocmSupport [ + # HSA runtime logs topology error in sandbox breaking test that asserts no output + "test_python_logger" + ] + ++ lib.optionals (stdenv.hostPlatform.isLinux && stdenv.hostPlatform.isAarch64) [ + # Fails in the sandbox: + # Error in cpuinfo: failed to parse the list of possible processors in /sys/devices/system/cpu/possible + "test_python_logger" + # AssertionError: index 0 "test_get_frames_played_at"