python312Packages.llvmlite: use pytestCheckHook

This commit is contained in:
Doron Behar
2024-08-24 23:36:41 +03:00
parent 631d41a767
commit 1623a677da
@@ -11,7 +11,7 @@
setuptools,
# tests
python,
pytestCheckHook,
}:
buildPythonPackage rec {
@@ -46,10 +46,12 @@ buildPythonPackage rec {
export LLVM_CONFIG=${llvm.dev}/bin/llvm-config
'';
checkPhase = ''
runHook preCheck
${python.executable} runtests.py
runHook postCheck
nativeCheckInputs = [
pytestCheckHook
];
# https://github.com/NixOS/nixpkgs/issues/255262
preCheck = ''
cd $out
'';
__impureHostDeps = lib.optionals stdenv.isDarwin [ "/usr/lib/libm.dylib" ];