python3Packages.dlib: split name to pname&version (#194382)

This commit is contained in:
erdnaxe 2022-10-04 15:56:29 +02:00 committed by GitHub
parent 04c496c155
commit 11bb01e7fa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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;
}