From c110ddcc9f6a2d5e4d02452f3befa34dd775c281 Mon Sep 17 00:00:00 2001 From: Jacob Larkin Date: Sun, 13 Oct 2024 02:23:55 +0000 Subject: [PATCH] python3Packages.dlib: use pytestCheckHook --- pkgs/development/python-modules/dlib/default.nix | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/pkgs/development/python-modules/dlib/default.nix b/pkgs/development/python-modules/dlib/default.nix index f66fe4bf484f..5faf143daab5 100644 --- a/pkgs/development/python-modules/dlib/default.nix +++ b/pkgs/development/python-modules/dlib/default.nix @@ -3,7 +3,7 @@ buildPythonPackage, dlib, python, - pytest, + pytestCheckHook, more-itertools, sse4Support ? stdenv.hostPlatform.sse4_1Support, avxSupport ? stdenv.hostPlatform.avxSupport, @@ -24,7 +24,7 @@ buildPythonPackage { patches = [ ./build-cores.patch ]; nativeCheckInputs = [ - pytest + pytestCheckHook more-itertools ]; @@ -34,13 +34,6 @@ buildPythonPackage { --replace "pytest==3.8" "pytest" ''; - # although AVX can be enabled, we never test with it. Some Hydra machines - # fail because of this, however their build results are probably used on hardware - # with AVX support. - checkPhase = '' - ${python.interpreter} nix_run_setup test --no USE_AVX_INSTRUCTIONS - ''; - setupPyBuildFlags = [ "--set USE_SSE4_INSTRUCTIONS=${if sse4Support then "yes" else "no"}" "--set USE_AVX_INSTRUCTIONS=${if avxSupport then "yes" else "no"}"