From 8e87791dc894515f9901bbcf5f4b1d8a52079046 Mon Sep 17 00:00:00 2001 From: Gaetan Lepage Date: Wed, 8 Apr 2026 16:21:46 +0000 Subject: [PATCH 1/2] python3Packages.tensordict: fix hash --- pkgs/development/python-modules/tensordict/default.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/development/python-modules/tensordict/default.nix b/pkgs/development/python-modules/tensordict/default.nix index e068a3ea6ffa..140aeafea321 100644 --- a/pkgs/development/python-modules/tensordict/default.nix +++ b/pkgs/development/python-modules/tensordict/default.nix @@ -36,7 +36,7 @@ buildPythonPackage (finalAttrs: { owner = "pytorch"; repo = "tensordict"; tag = "v${finalAttrs.version}"; - hash = "sha256-5m5nNVsaBabUuKPHErBr+LQWfCvjG9b2CjwdK9mASF0="; + hash = "sha256-rnMp0u3sl9zqIKNp3OoM9PmE/468YCwqTY4rdDHxamw="; }; postPatch = '' From 19b476004e07351933e646196294d04ad11ab3bb Mon Sep 17 00:00:00 2001 From: Gaetan Lepage Date: Wed, 8 Apr 2026 17:17:20 +0000 Subject: [PATCH 2/2] python3Packages.tensordict: skip failing tests on aarch64-linux --- pkgs/development/python-modules/tensordict/default.nix | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/pkgs/development/python-modules/tensordict/default.nix b/pkgs/development/python-modules/tensordict/default.nix index 140aeafea321..81817baadfd3 100644 --- a/pkgs/development/python-modules/tensordict/default.nix +++ b/pkgs/development/python-modules/tensordict/default.nix @@ -89,6 +89,12 @@ buildPythonPackage (finalAttrs: { # AssertionError: assert 'a string!' == 'a metadata!' "test_save_load_memmap" ] + ++ lib.optionals (stdenv.hostPlatform.isLinux && stdenv.hostPlatform.isAarch64) [ + # RuntimeError: Failed to initialize cpuinfo! + "test_cast_to" + "test_casts" + "test_td_params_cast" + ] ++ lib.optionals stdenv.hostPlatform.isDarwin [ # Hangs due to the use of a pool "test_chunksize_num_chunks"