···4040assert enablePython -> pythonPackages != null;
41414242let
4343- version = "3.4.15";
4343+ version = "3.4.18";
44444545 src = fetchFromGitHub {
4646 owner = "opencv";
4747 repo = "opencv";
4848 rev = version;
4949- hash = "sha256-dLwQM2VhVlBV4xazS2rItTscKYeeNlNT0G8G1A1mOmc=";
4949+ hash = "sha256-PgwAZNoPknFT0jCLt3TCzend6OYFY3iUIzDf/FptAYA=";
5050 };
51515252 contribSrc = fetchFromGitHub {
5353 owner = "opencv";
5454 repo = "opencv_contrib";
5555 rev = version;
5656- hash = "sha256-FJDRMmSOT5jA+n2Ke0gEH7n5rgGvB1UzYpYZ1vmucjg=";
5656+ hash = "sha256-TEF/GHglOmsshlC6q4iw14ZMpvA0SaKwlidomAN+sRc=";
5757 };
58585959 # Contrib must be built in order to enable Tesseract support:
···155155 # Ensures that we use the system OpenEXR rather than the vendored copy of the source included with OpenCV.
156156 patches = [
157157 ./cmake-don-t-use-OpenCVFindOpenEXR.patch
158158- # Fix usage of deprecated version of protobuf' SetTotalBytesLimit. Remove with the next release.
159159- (fetchpatch {
160160- url = "https://github.com/opencv/opencv/commit/384875f4fcf1782b10699a379aa245a03cb27a04.patch";
161161- sha256 = "1agwd0pm07m2dy8a62vmfl4n73dsmsdll2a73q6kara9wm3jlp41";
162162- })
163158 ];
164159165160 # This prevents cmake from using libraries in impure paths (which