Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 19.03 587 B view raw
1{ buildPythonPackage, dlib, python, pytest, avxSupport ? true }: 2 3buildPythonPackage { 4 inherit (dlib) name src nativeBuildInputs buildInputs meta; 5 6 # although AVX can be enabled, we never test with it. Some Hydra machines 7 # fail because of this, however their build results are probably used on hardware 8 # with AVX support. 9 checkPhase = '' 10 ${python.interpreter} nix_run_setup test --no USE_AVX_INSTRUCTIONS 11 ''; 12 13 setupPyBuildFlags = [ "--${if avxSupport then "yes" else "no"} USE_AVX_INSTRUCTIONS" ]; 14 15 patches = [ ./build-cores.patch ]; 16 17 checkInputs = [ pytest ]; 18}