Commit 935f8ab9 authored by Michael Adler's avatar Michael Adler
Browse files

offlineimap: backport fix for sqlite multi-threading issue in Python 3.11

The transition from Python 3.10 to 3.11 broke offlineimap due to an
incorrect sqlite3 multi-threading check. Although addressed upstream, it
hasn't been released yet. This commit backports the necessary fix, which
can be removed upon the next offlineimap release.
parent 63678e9f
Loading
Loading
Loading
Loading
+9 −0
Original line number Diff line number Diff line
@@ -9,6 +9,7 @@
, libxslt
, testers
, offlineimap
, fetchpatch
}:

python3.pkgs.buildPythonApplication rec {
@@ -22,6 +23,14 @@ python3.pkgs.buildPythonApplication rec {
    sha256 = "0y3giaz9i8vvczlxkbwymfkn3vi9fv599dy4pc2pn2afxsl4mg2w";
  };

  patches = [
    (fetchpatch {
      name = "sqlite-version-aware-threadsafety-check.patch";
      url = "https://github.com/OfflineIMAP/offlineimap3/pull/139/commits/7cd32cf834b34a3d4675b29bebcd32dc1e5ef128.patch";
      hash = "sha256-xNq4jFHMf9XZaa9BFF1lOzZrEGa5BEU8Dr+gMOBkJE4=";
    })
  ];

  nativeBuildInputs = [
    asciidoc
    docbook_xsl