From 699160ff19435107b8fbb483dedff8171fb2907a Mon Sep 17 00:00:00 2001 From: Gaetan Lepage Date: Sun, 1 Mar 2026 11:06:02 +0000 Subject: [PATCH] python3Packages.onnx-asr: disable pythonImportsCheck on aarch64-linux --- pkgs/development/python-modules/onnx-asr/default.nix | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/pkgs/development/python-modules/onnx-asr/default.nix b/pkgs/development/python-modules/onnx-asr/default.nix index dfd75018eea5..2cfa1dc15f07 100644 --- a/pkgs/development/python-modules/onnx-asr/default.nix +++ b/pkgs/development/python-modules/onnx-asr/default.nix @@ -1,5 +1,6 @@ { lib, + stdenv, buildPythonPackage, fetchFromGitHub, @@ -68,9 +69,13 @@ buildPythonPackage (finalAttrs: { # Most tests require downloading models from Hugging Face doCheck = false; - pythonImportsCheck = [ - "onnx_asr" - ]; + # aarch64-linux fails cpuinfo test, because /sys/devices/system/cpu/ does not exist in the sandbox: + # terminate called after throwing an instance of 'onnxruntime::OnnxRuntimeException' + pythonImportsCheck = + lib.optionals (!(stdenv.hostPlatform.isLinux && stdenv.hostPlatform.isAarch64)) + [ + "onnx_asr" + ]; meta = { description = "Lightweight Automatic Speech Recognition using ONNX models";