python3Packages.translatehtml: skip pythonImportsCheck on aarch64
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
{
|
||||
lib,
|
||||
stdenv,
|
||||
buildPythonPackage,
|
||||
fetchFromGitHub,
|
||||
writableTmpDirAsHomeHook,
|
||||
@@ -8,6 +9,10 @@
|
||||
beautifulsoup4,
|
||||
}:
|
||||
|
||||
let
|
||||
inherit (stdenv.hostPlatform) isLinux isAarch64;
|
||||
isAarch64Linux = isLinux && isAarch64;
|
||||
in
|
||||
buildPythonPackage (finalAttrs: {
|
||||
pname = "translatehtml";
|
||||
version = "1.5.3";
|
||||
@@ -29,8 +34,11 @@ buildPythonPackage (finalAttrs: {
|
||||
beautifulsoup4
|
||||
];
|
||||
|
||||
pythonImportsCheck = [ "translatehtml" ];
|
||||
# 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.optional (!isAarch64Linux) "translatehtml";
|
||||
nativeCheckInputs = [ writableTmpDirAsHomeHook ];
|
||||
doCheck = !isAarch64Linux;
|
||||
|
||||
meta = {
|
||||
description = "Translate HTML using Beautiful Soup and Argos Translate";
|
||||
|
||||
Reference in New Issue
Block a user