From b98b7e2f638436972586ec219e966f3ea166907e Mon Sep 17 00:00:00 2001 From: Harinn Date: Wed, 6 May 2026 13:40:46 +0700 Subject: [PATCH] python3Packages.hyper-connections: disable failing test on aarch64-linux --- .../python-modules/hyper-connections/default.nix | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/pkgs/development/python-modules/hyper-connections/default.nix b/pkgs/development/python-modules/hyper-connections/default.nix index 2a79418a5826..b0ec4af38158 100644 --- a/pkgs/development/python-modules/hyper-connections/default.nix +++ b/pkgs/development/python-modules/hyper-connections/default.nix @@ -5,6 +5,7 @@ fetchFromGitHub, hatchling, pytestCheckHook, + stdenv, torch, torch-einops-utils, }: @@ -31,6 +32,12 @@ buildPythonPackage (finalAttrs: { nativeCheckInputs = [ pytestCheckHook ]; + disabledTests = lib.optionals (stdenv.hostPlatform.isLinux && stdenv.hostPlatform.isAarch64) [ + # torch's cpuinfo init fails to parse /sys/devices/system/cpu/{possible,present} + # in the build sandbox on aarch64-linux, breaking `.half()` calls + "test_mhc_dtype_restoration" + ]; + pythonImportsCheck = [ "hyper_connections" ]; meta = {