From ec56620ff66aa06953b2d675e71df177ef7f375d Mon Sep 17 00:00:00 2001
From: Andrew Morgan <andrew@amorgan.xyz>
Date: Thu, 2 Apr 2020 18:08:03 +0100
Subject: [PATCH] Pin Pillow>=4.3.0,<7.1.0 to fix dep issue

---
 synapse/python_dependencies.py | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/synapse/python_dependencies.py b/synapse/python_dependencies.py
index 8de8cb2c12..3274eb9863 100644
--- a/synapse/python_dependencies.py
+++ b/synapse/python_dependencies.py
@@ -61,7 +61,9 @@ REQUIREMENTS = [
     "pyasn1-modules>=0.0.7",
     "daemonize>=2.3.1",
     "bcrypt>=3.1.0",
-    "pillow>=4.3.0",
+    # Pillow 7.1.0 causes the following issue on debian buster:
+    # https://github.com/python-pillow/Pillow/issues/2377
+    "pillow>=4.3.0,<7.1.0",
     "sortedcontainers>=1.4.4",
     "pymacaroons>=0.13.0",
     "msgpack>=0.5.2",
-- 
GitLab