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 = {