diff --git a/srcpkgs/offlineimap/patches/python3.11.patch b/srcpkgs/offlineimap/patches/python3.11.patch new file mode 100644 index 00000000000..5417739f46d --- /dev/null +++ b/srcpkgs/offlineimap/patches/python3.11.patch @@ -0,0 +1,25 @@ +From 7d8700e3e0a271a602944ef633876f01bf88e10f Mon Sep 17 00:00:00 2001 +From: Franklin Bynum +Date: Thu, 8 Sep 2022 13:23:11 -0500 +Subject: [PATCH] Fixes OfflineIMAP/offlineimap3#136 + +https://github.com/OfflineIMAP/offlineimap3/pull/137 + +Signed-off-by: Franklin Bynum +--- + offlineimap/folder/LocalStatusSQLite.py | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/offlineimap/folder/LocalStatusSQLite.py b/offlineimap/folder/LocalStatusSQLite.py +index a576b9ca..1699d492 100644 +--- a/offlineimap/folder/LocalStatusSQLite.py ++++ b/offlineimap/folder/LocalStatusSQLite.py +@@ -104,7 +104,7 @@ def __exit__(self, exc_type, exc_val, exc_tb): + + def openfiles(self): + # Make sure sqlite is in multithreading SERIALIZE mode. +- assert sqlite.threadsafety == 1, 'Your sqlite is not multithreading safe.' ++ assert sqlite.threadsafety != 0, 'Your sqlite is not multithreading safe.' + + with self._databaseFileLock.getLock(): + # Try to establish connection, no need for threadsafety in __init__. diff --git a/srcpkgs/offlineimap/template b/srcpkgs/offlineimap/template index deb70fa25ff..75dc29bc468 100644 --- a/srcpkgs/offlineimap/template +++ b/srcpkgs/offlineimap/template @@ -1,7 +1,7 @@ # Template file for 'offlineimap' pkgname=offlineimap version=8.0.0 -revision=2 +revision=3 build_style=python3-module make_check_args="--ignore test/tests/test_00_imaputil.py --ignore test/tests/test_01_basic.py --ignore test/tests/test_02_MappedIMAP.py"