pythonPackages.dlib: move expression

Initially the expression was quite small (just inherited properties from
`pkgs.dlib`), but the more it grows the better it is to store it into
its own file.
This commit is contained in:
Maximilian Bosch
2018-10-29 18:57:19 +01:00
parent ac499a345a
commit b7bc6e7f6c
2 changed files with 15 additions and 10 deletions

View File

@@ -0,0 +1,13 @@
{ buildPythonPackage, dlib, python, pytest }:
buildPythonPackage {
inherit (dlib) name src nativeBuildInputs buildInputs meta;
checkPhase = ''
${python.interpreter} nix_run_setup test --no USE_AVX_INSTRUCTIONS
'';
patches = [ ./build-cores.patch ];
checkInputs = [ pytest ];
}