vectorcode: inherit doCheck from chromadb

The tests need to import onnxruntime (a transitive of chromadb),
however it has issues running in the build sandbox on aarch64-linux.

It may work at runtime, so the package is not marked broken, however it
will break tests, so the check phase is disabled when building on
aarch64-linux.

Since the issue comes via chromadb, we inherit its `doCheck` attribute.
This commit is contained in:
Matt Sturgeon
2025-06-24 15:46:44 +01:00
parent f40c509665
commit 57c2c422b2
+6
View File
@@ -127,6 +127,12 @@ python.pkgs.buildPythonApplication rec {
};
'';
# Test collection breaks on aarch64-linux, because the transitive onnxruntime
# tries to read /sys/devices/system/cpu, which does not exist in the sandbox.
#
# We inherit the issue from chromadb, so inherit its `doCheck` attribute.
inherit (python.pkgs.chromadb) doCheck;
pythonImportsCheck = [ "vectorcode" ];
nativeCheckInputs =