From 9f36748b103e1277561e2576d23176d53a58590e Mon Sep 17 00:00:00 2001 From: Nicolas Graves Date: Tue, 23 Sep 2025 22:54:10 +0200 Subject: [PATCH] gnu: python-dlib: Fix tests. * gnu/packages/machine-learning.scm (python-dlib): [arguments]: Improve style. [native-inputs]: Sort them. Add python-pytest. Change-Id: Ie6223d3d635d96e813897431e2389cbdf9776b75 Signed-off-by: Sharlatan Hellseher --- gnu/packages/machine-learning.scm | 32 +++++++++++++++++++------------ 1 file changed, 20 insertions(+), 12 deletions(-) diff --git a/gnu/packages/machine-learning.scm b/gnu/packages/machine-learning.scm index 66fb27428eefdff0523f5ef12b998d42cf27b7cb..49a5707f8ddacd3dec4372cee808d259bd515f76 100644 --- a/gnu/packages/machine-learning.scm +++ b/gnu/packages/machine-learning.scm @@ -6411,15 +6411,23 @@ diverse set of reference environments (formerly Gym).") ;; better that way. (define-public python-dlib (package - (inherit dlib) - (name "python-dlib") - (build-system pyproject-build-system) - (arguments - `(#:phases - (modify-phases %standard-phases - (add-after 'unpack 'subst - (lambda _ - (substitute* "tools/python/CMakeLists.txt" - (("add_subdirectory[(][.][.]/[.][.]/dlib/external/pybind11 pybind11_build[)]") - "find_package(pybind11 CONFIG)"))))))) - (native-inputs (list python-setuptools python-wheel cmake-minimal perl pkg-config pybind11)))) + (inherit dlib) + (name "python-dlib") + (build-system pyproject-build-system) + (arguments + (list + #:phases + #~(modify-phases %standard-phases + (add-after 'unpack 'subst + (lambda _ + (substitute* "tools/python/CMakeLists.txt" + (("\ +add_subdirectory[(][.][.]/[.][.]/dlib/external/pybind11 pybind11_build[)]") + "find_package(pybind11 CONFIG)"))))))) + (native-inputs + (list cmake-minimal + perl + pkg-config + pybind11 + python-pytest + python-setuptools))))