GNU bug report logs - #56803
[PATCH 0/6] Add hydrus network and its dependencies

Previous Next

Package: guix-patches;

Reported by: Tomasz Jeneralczyk <tj <at> schwi.pl>

Date: Wed, 27 Jul 2022 18:59:02 UTC

Severity: normal

Tags: patch

Done: Ludovic Courtès <ludo <at> gnu.org>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Tomasz Jeneralczyk <tj <at> schwi.pl>
To: 56803 <at> debbugs.gnu.org
Cc: Tomasz Jeneralczyk <tj <at> schwi.pl>
Subject: [bug#56803] [PATCH 4/6] gnu: Add opencv-with-python.
Date: Wed, 27 Jul 2022 21:00:26 +0200
Also add copyright.

* gnu/packages/image-processing.scm (opencv-with-python): Add variable.
---
 gnu/packages/image-processing.scm | 12 ++++++++++++
 1 file changed, 12 insertions(+)

diff --git a/gnu/packages/image-processing.scm b/gnu/packages/image-processing.scm
index bcb1d7a2f6..9496155ec7 100644
--- a/gnu/packages/image-processing.scm
+++ b/gnu/packages/image-processing.scm
@@ -20,6 +20,7 @@
 ;;; Copyright © 2021 Guillaume Le Vaillant <glv <at> posteo.net>
 ;;; Copyright © 2021 Ivan Gankevich <i.gankevich <at> spbu.ru>
 ;;; Copyright © 2022 Maxim Cournoyer <maxim.cournoyer <at> gmail.com>
+;;; Copyright © 2022 Tomasz Jeneralczyk <tj <at> 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")
-- 
2.37.1





This bug report was last modified 2 years and 324 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.