Commit 3f7897d6 authored by Gaetan Lepage's avatar Gaetan Lepage
Browse files

python3Packages.minisbd: skip pythonImportsCheck on aarch64-linux

parent 541c2f66
Loading
Loading
Loading
Loading
+6 −3
Original line number Diff line number Diff line
{
  lib,
  stdenv,
  buildPythonPackage,
  fetchFromGitHub,
  # build-system
@@ -29,9 +30,11 @@ buildPythonPackage (finalAttrs: {
    onnxruntime
  ];

  pythonImportsCheck = [
    "minisbd"
  ];
  # 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)
  ) [ "minisbd" ];

  meta = {
    description = "Free and open source library for fast sentence boundary detection";