python3Packages.onnx-asr: disable pythonImportsCheck on aarch64-linux

This commit is contained in:
Gaetan Lepage
2026-03-01 11:06:02 +00:00
parent d3ea5d7a12
commit 699160ff19
@@ -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";