whisper-ctranslate2: fix aarch64-linux (#424687)
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
{
|
||||
lib,
|
||||
stdenv,
|
||||
python3,
|
||||
python3Packages,
|
||||
fetchFromGitHub,
|
||||
@@ -41,6 +42,9 @@ python3Packages.buildPythonApplication {
|
||||
${python3.interpreter} -m nose2 -s tests
|
||||
runHook postCheck
|
||||
'';
|
||||
# Tests fail in build sandbox on aarch64-linux, but the program still works at
|
||||
# runtime. See https://github.com/microsoft/onnxruntime/issues/10038.
|
||||
doCheck = with stdenv.buildPlatform; !(isAarch && isLinux);
|
||||
|
||||
passthru.updateScript = nix-update-script { };
|
||||
|
||||
@@ -51,10 +55,5 @@ python3Packages.buildPythonApplication {
|
||||
license = lib.licenses.mit;
|
||||
maintainers = with lib.maintainers; [ happysalada ];
|
||||
mainProgram = "whisper-ctranslate2";
|
||||
badPlatforms = [
|
||||
# terminate called after throwing an instance of 'onnxruntime::OnnxRuntimeException'
|
||||
# what(): /build/source/include/onnxruntime/core/common/logging/logging.h:320 static const onnxruntime::logging::Logger& onnxruntime::logging::LoggingManager::DefaultLogger() Attempt to use DefaultLogger but none has been registered.
|
||||
"aarch64-linux"
|
||||
];
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user