Unverified Commit 0f613348 authored by Yt's avatar Yt Committed by GitHub
Browse files

whisper-ctranslate2: fix aarch64-linux (#424687)

parents 2d5e78f5 59dcfb6c
Loading
Loading
Loading
Loading
+4 −5
Original line number Diff line number Diff line
{
  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"
    ];
  };
}