@@ -20,6 +20,7 @@
;;; Copyright © 2021 Guillaume Le Vaillant <glv@posteo.net>
;;; Copyright © 2021 Ivan Gankevich <i.gankevich@spbu.ru>
;;; Copyright © 2022 Maxim Cournoyer <maxim.cournoyer@gmail.com>
+;;; Copyright © 2022 Tomasz Jeneralczyk <tj@schwi.pl>
;;;
;;; This file is part of GNU Guix.
;;;
@@ -657,6 +658,17 @@ (define-public opencv
(home-page "https://opencv.org/")
(license license:bsd-3)))
+(define-public opencv-with-python
+ (package
+ (inherit opencv)
+ (name "opencv-with-python")
+ (arguments
+ (let* ((args (package-arguments opencv)))
+ (assoc-set! args #:configure-flags
+ (append (list "-DBUILD_opencv_python3=ON")
+ (assoc-ref args #:configure-flags)))
+ args))))
+
(define-public vips
(package
(name "vips")