summary refs log tree commit diff
path: root/pkgs/development/libraries/opencv
diff options
context:
space:
mode:
authorArtturin <Artturin@artturin.com>2022-12-29 15:26:58 +0200
committerArtturin <Artturin@artturin.com>2022-12-29 15:26:58 +0200
commit72c7d7c27ea766ebe2ba6447ea9686c73169b6b8 (patch)
treecffb9199b4ca6be336b8b1a32ffa099397c45dd1 /pkgs/development/libraries/opencv
parente9f67d5ae55e2107ef0ece3a537b29375a1e9b00 (diff)
downloadnixpkgs-72c7d7c27ea766ebe2ba6447ea9686c73169b6b8.tar
nixpkgs-72c7d7c27ea766ebe2ba6447ea9686c73169b6b8.tar.gz
nixpkgs-72c7d7c27ea766ebe2ba6447ea9686c73169b6b8.tar.bz2
nixpkgs-72c7d7c27ea766ebe2ba6447ea9686c73169b6b8.tar.lz
nixpkgs-72c7d7c27ea766ebe2ba6447ea9686c73169b6b8.tar.xz
nixpkgs-72c7d7c27ea766ebe2ba6447ea9686c73169b6b8.tar.zst
nixpkgs-72c7d7c27ea766ebe2ba6447ea9686c73169b6b8.zip
opencv4: add reverse deps to tests
Diffstat (limited to 'pkgs/development/libraries/opencv')
-rw-r--r--pkgs/development/libraries/opencv/4.x.nix8
1 files changed, 7 insertions, 1 deletions
diff --git a/pkgs/development/libraries/opencv/4.x.nix b/pkgs/development/libraries/opencv/4.x.nix
index 55889ccab07..2c676e008f0 100644
--- a/pkgs/development/libraries/opencv/4.x.nix
+++ b/pkgs/development/libraries/opencv/4.x.nix
@@ -14,6 +14,7 @@
 , config
 , ocl-icd
 , buildPackages
+, qimgv
 
 , enableJPEG ? true
 , libjpeg
@@ -365,7 +366,12 @@ stdenv.mkDerivation {
     popd
   '';
 
-  passthru = lib.optionalAttrs enablePython { pythonPath = [ ]; };
+  passthru = {
+    tests = {
+      inherit qimgv;
+      inherit (gst_all_1) gst-plugins-bad;
+    } // lib.optionalAttrs (!enablePython) { pythonEnabled = pythonPackages.opencv4; };
+  } // lib.optionalAttrs enablePython { pythonPath = [ ]; };
 
   meta = with lib; {
     description = "Open Computer Vision Library with more than 500 algorithms";