mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-16 14:54:29 +01:00
python3Packages.dlib: split name to pname&version (#194382)
This commit is contained in:
parent
04c496c155
commit
11bb01e7fa
1 changed files with 11 additions and 11 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue