Commit 5f0e0cdc authored by qbisi's avatar qbisi Committed by Masum Reza
Browse files

python312Packages.pyopencl: doCheck with pocl

parent cd6a5a15
Loading
Loading
Loading
Loading
+10 −9
Original line number Diff line number Diff line
@@ -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"