···40assert enablePython -> pythonPackages != null;
4142let
43- version = "3.4.15";
4445 src = fetchFromGitHub {
46 owner = "opencv";
47 repo = "opencv";
48 rev = version;
49- hash = "sha256-dLwQM2VhVlBV4xazS2rItTscKYeeNlNT0G8G1A1mOmc=";
50 };
5152 contribSrc = fetchFromGitHub {
53 owner = "opencv";
54 repo = "opencv_contrib";
55 rev = version;
56- hash = "sha256-FJDRMmSOT5jA+n2Ke0gEH7n5rgGvB1UzYpYZ1vmucjg=";
57 };
5859 # Contrib must be built in order to enable Tesseract support:
···155 # Ensures that we use the system OpenEXR rather than the vendored copy of the source included with OpenCV.
156 patches = [
157 ./cmake-don-t-use-OpenCVFindOpenEXR.patch
158- # Fix usage of deprecated version of protobuf' SetTotalBytesLimit. Remove with the next release.
159- (fetchpatch {
160- url = "https://github.com/opencv/opencv/commit/384875f4fcf1782b10699a379aa245a03cb27a04.patch";
161- sha256 = "1agwd0pm07m2dy8a62vmfl4n73dsmsdll2a73q6kara9wm3jlp41";
162- })
163 ];
164165 # This prevents cmake from using libraries in impure paths (which
···40assert enablePython -> pythonPackages != null;
4142let
43+ version = "3.4.18";
4445 src = fetchFromGitHub {
46 owner = "opencv";
47 repo = "opencv";
48 rev = version;
49+ hash = "sha256-PgwAZNoPknFT0jCLt3TCzend6OYFY3iUIzDf/FptAYA=";
50 };
5152 contribSrc = fetchFromGitHub {
53 owner = "opencv";
54 repo = "opencv_contrib";
55 rev = version;
56+ hash = "sha256-TEF/GHglOmsshlC6q4iw14ZMpvA0SaKwlidomAN+sRc=";
57 };
5859 # Contrib must be built in order to enable Tesseract support:
···155 # Ensures that we use the system OpenEXR rather than the vendored copy of the source included with OpenCV.
156 patches = [
157 ./cmake-don-t-use-OpenCVFindOpenEXR.patch
00000158 ];
159160 # This prevents cmake from using libraries in impure paths (which