diff --git a/pkgs/development/python-modules/ctranslate2/default.nix b/pkgs/development/python-modules/ctranslate2/default.nix index 26de059fba7b..5c84d2b1ca1c 100644 --- a/pkgs/development/python-modules/ctranslate2/default.nix +++ b/pkgs/development/python-modules/ctranslate2/default.nix @@ -67,10 +67,15 @@ buildPythonPackage rec { rm -rf ctranslate2 ''; - disabledTests = lib.optionals stdenv.hostPlatform.isDarwin [ - # Fatal Python error: Aborted - "test_invalid_model_path" - ]; + disabledTests = + lib.optionals (stdenv.hostPlatform.isAarch64 && stdenv.hostPlatform.isLinux) [ + # RuntimeError: Failed to initialize cpuinfo!" + "test_torch_variables" + ] + ++ lib.optionals stdenv.hostPlatform.isDarwin [ + # Fatal Python error: Aborted + "test_invalid_model_path" + ]; disabledTestPaths = [ # TODO: ModuleNotFoundError: No module named 'opennmt'