Commit 1623a677 authored by Doron Behar's avatar Doron Behar
Browse files

python312Packages.llvmlite: use pytestCheckHook

parent 631d41a7
Loading
Loading
Loading
Loading
+7 −5
Original line number Diff line number Diff line
@@ -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" ];