From 5f0e0cdc1c20c4863abfe84e626765e166170ab7 Mon Sep 17 00:00:00 2001 From: qbisi Date: Tue, 15 Apr 2025 05:58:13 +0800 Subject: [PATCH] python312Packages.pyopencl: doCheck with pocl --- .../python-modules/pyopencl/default.nix | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/pkgs/development/python-modules/pyopencl/default.nix b/pkgs/development/python-modules/pyopencl/default.nix index e15dde02e599..741ba71c3037 100644 --- a/pkgs/development/python-modules/pyopencl/default.nix +++ b/pkgs/development/python-modules/pyopencl/default.nix @@ -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"