python312Packages.pyopencl: doCheck with pocl

This commit is contained in:
qbisi
2025-04-21 09:27:34 +05:30
committed by Masum Reza
parent cd6a5a15fc
commit 5f0e0cdc1c
@@ -23,6 +23,9 @@
# tests
pytestCheckHook,
writableTmpDirAsHomeHook,
mako,
pocl,
}:
let
@@ -63,19 +66,17 @@ buildPythonPackage rec {
pytools
];
nativeCheckInputs = [ pytestCheckHook ];
nativeCheckInputs = [
pocl
mako
pytestCheckHook
writableTmpDirAsHomeHook
] ++ pytools.optional-dependencies.siphash;
preCheck = ''
export HOME=$(mktemp -d)
# https://github.com/NixOS/nixpkgs/issues/255262
cd $out
rm -rf pyopencl
'';
# https://github.com/inducer/pyopencl/issues/784 Note that these failing
# tests are all the tests that are available.
doCheck = false;
pythonImportsCheck = [
"pyopencl"
"pyopencl.array"