~ruther/guix-local

9f36748b103e1277561e2576d23176d53a58590e — Nicolas Graves 6 months ago 2c3b624
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 <sharlatanus@gmail.com>
1 files changed, 20 insertions(+), 12 deletions(-)

M gnu/packages/machine-learning.scm
M gnu/packages/machine-learning.scm => gnu/packages/machine-learning.scm +20 -12
@@ 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))))