diff options
author | erdnaxe <erdnaxe@users.noreply.github.com> | 2022-10-04 15:56:29 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-10-04 15:56:29 +0200 |
commit | 11bb01e7fa509db5a8adce09b5edfc8554f7eee4 (patch) | |
tree | 8707d51a914383f9cf1c131b8fd7eeceb800b15c /pkgs/development/python-modules/dlib | |
parent | 04c496c1551125f409546ed990c817dc8d7dc1d6 (diff) |
python3Packages.dlib: split name to pname&version (#194382)
Diffstat (limited to 'pkgs/development/python-modules/dlib')
-rw-r--r-- | pkgs/development/python-modules/dlib/default.nix | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/pkgs/development/python-modules/dlib/default.nix b/pkgs/development/python-modules/dlib/default.nix index 6427948356541..601c5ca50758d 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; } |