~ruther/guix-local

def8bd519775c5f64fe2975066167f3b7989a0fc — Danny Milosavljevic 1 year, 1 month ago 6cd15c8
gnu: Add python-dlib.

* gnu/packages/machine-learning.scm (python-dlib): New variable.

Change-Id: Ia61ad36998353386b6d00f2ad1dd179ba28e9a38
1 files changed, 18 insertions(+), 0 deletions(-)

M gnu/packages/machine-learning.scm
M gnu/packages/machine-learning.scm => gnu/packages/machine-learning.scm +18 -0
@@ 6450,3 6450,21 @@ diverse set of reference environments (formerly Gym).")
    "This package provides a toolkit for making machine learning and data
analysis applications in C++.")
   (license license:boost1.0)))

;; This will build dlib in the process of building python-dlib--and that
;; seems to be intended by upstream.  Well, at least it probably optimizes
;; 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))))