From f5e7cb700fa4890ee6dd0fa5773e288006543719 Mon Sep 17 00:00:00 2001 From: Ruoyu Zhong Date: Wed, 21 Aug 2024 21:41:46 +0800 Subject: [PATCH] offlineimap: add patch to fix compatibility with Python 3.11 Fixes https://github.com/orgs/Homebrew/discussions/5565. Fixes https://github.com/OfflineIMAP/offlineimap3/issues/144. Fixes https://github.com/OfflineIMAP/offlineimap3/issues/151. --- Formula/o/offlineimap.rb | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/Formula/o/offlineimap.rb b/Formula/o/offlineimap.rb index 853a1c2f7037..84a9d287c5ba 100644 --- a/Formula/o/offlineimap.rb +++ b/Formula/o/offlineimap.rb @@ -6,7 +6,7 @@ class Offlineimap < Formula url "https://github.com/OfflineIMAP/offlineimap3/archive/refs/tags/v8.0.0.tar.gz" sha256 "5d40c163ca2fbf89658116e29f8fa75050d0c34c29619019eee1a84c90fcab32" license "GPL-2.0-or-later" - revision 2 + revision 3 head "https://github.com/OfflineIMAP/offlineimap3.git", branch: "master" bottle do @@ -59,6 +59,12 @@ class Offlineimap < Formula sha256 "8d7eaa5a82a1cac232164990f04874c594c9453ec55eef02eab885aa02fc17a2" end + # Fix compatibility with Python 3.11+. + patch do + url "https://github.com/OfflineIMAP/offlineimap3/commit/7cd32cf834b34a3d4675b29bebcd32dc1e5ef128.patch?full_index=1" + sha256 "ffddf6f43398ee13a761c78bece1b4262f9a46cc678966da6af2705ee0fbf1ba" + end + # Support python 3.12 patch do url "https://github.com/OfflineIMAP/offlineimap3/commit/b0c75495db9e1b2b2879e7b0500a885df937bc66.patch?full_index=1"