diff --git a/pkgs/development/python-modules/dlib/default.nix b/pkgs/development/python-modules/dlib/default.nix index 642794835654..601c5ca50758 100644 --- a/pkgs/development/python-modules/dlib/default.nix +++ b/pkgs/development/python-modules/dlib/default.nix @@ -4,7 +4,17 @@ }: buildPythonPackage { - inherit (dlib) name src nativeBuildInputs buildInputs meta; + inherit (dlib) pname version src nativeBuildInputs buildInputs meta; + + patches = [ ./build-cores.patch ]; + + checkInputs = [ pytest more-itertools ]; + + postPatch = '' + substituteInPlace setup.py \ + --replace "more-itertools<6.0.0" "more-itertools" \ + --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 @@ -18,15 +28,5 @@ buildPythonPackage { "--set USE_AVX_INSTRUCTIONS=${if avxSupport then "yes" else "no"}" ]; - patches = [ ./build-cores.patch ]; - - postPatch = '' - substituteInPlace setup.py \ - --replace "more-itertools<6.0.0" "more-itertools" \ - --replace "pytest==3.8" "pytest" - ''; - - checkInputs = [ pytest more-itertools ]; - dontUseCmakeConfigure = true; }