git: ac83da8f0f64 - main - net-im/py-matrix-synapse: Update to 1.55.2

From: Ashish SHUKLA <ashish_at_FreeBSD.org>
Date: Sat, 26 Mar 2022 15:44:58 UTC
The branch main has been updated by ashish:

URL: https://cgit.FreeBSD.org/ports/commit/?id=ac83da8f0f647fdcfd6c5d8abf01fe09a7ed28fb

commit ac83da8f0f647fdcfd6c5d8abf01fe09a7ed28fb
Author:     Sascha Biberhofer <ports@skyforge.at>
AuthorDate: 2022-03-24 19:23:56 +0000
Commit:     Ashish SHUKLA <ashish@FreeBSD.org>
CommitDate: 2022-03-26 15:44:25 +0000

    net-im/py-matrix-synapse: Update to 1.55.2
---
 net-im/py-matrix-synapse/Makefile                             |  9 +++++----
 net-im/py-matrix-synapse/distinfo                             |  6 +++---
 .../files/patch-synapse_python__dependencies.py               | 10 +++++-----
 net-im/py-matrix-synapse/files/pkg-message.in                 | 11 +++++++++++
 4 files changed, 24 insertions(+), 12 deletions(-)

diff --git a/net-im/py-matrix-synapse/Makefile b/net-im/py-matrix-synapse/Makefile
index 12b3aaac05a1..12cf37a11a43 100644
--- a/net-im/py-matrix-synapse/Makefile
+++ b/net-im/py-matrix-synapse/Makefile
@@ -2,7 +2,7 @@
 
 PORTNAME=	matrix-synapse
 DISTVERSIONPREFIX=	v
-DISTVERSION=	1.53.0
+DISTVERSION=	1.55.2
 CATEGORIES=	net-im python
 PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
 
@@ -37,11 +37,12 @@ RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}jsonschema>=3.0.0:devel/py-jsonschema@${PY_F
 		${PYTHON_PKGNAMEPREFIX}prometheus-client>=0.4.0:net-mgmt/py-prometheus-client@${PY_FLAVOR} \
 		${PYTHON_PKGNAMEPREFIX}attrs>19.2.0:devel/py-attrs@${PY_FLAVOR} \
 		${PYTHON_PKGNAMEPREFIX}netaddr>=0.7.18:net/py-netaddr@${PY_FLAVOR} \
-		${PYTHON_PKGNAMEPREFIX}Jinja2>=2.9:devel/py-Jinja2@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}Jinja2<3.1.0:devel/py-Jinja2@${PY_FLAVOR} \
 		${PYTHON_PKGNAMEPREFIX}bleach>=1.4.3:www/py-bleach@${PY_FLAVOR} \
-		${PYTHON_PKGNAMEPREFIX}typing-extensions>=3.7.4:devel/py-typing-extensions@${PY_FLAVOR} \
-		${PYTHON_PKGNAMEPREFIX}ijson>=3.1:devel/py-ijson@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}typing-extensions>=3.10.0:devel/py-typing-extensions@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}ijson>=3.1.4:devel/py-ijson@${PY_FLAVOR} \
 		${PYTHON_PKGNAMEPREFIX}pyjwt>=1.7.0:www/py-pyjwt@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}packaging>=16.1:devel/py-packaging@${PY_FLAVOR} \
 		${PYTHON_PKGNAMEPREFIX}matrix-common>=1.1.0:devel/py-matrix-common@${PY_FLAVOR} \
 		${LOCALBASE}/share/certs/ca-root-nss.crt:security/ca_root_nss
 
diff --git a/net-im/py-matrix-synapse/distinfo b/net-im/py-matrix-synapse/distinfo
index c8613b3ff465..4892f2cafbfa 100644
--- a/net-im/py-matrix-synapse/distinfo
+++ b/net-im/py-matrix-synapse/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1645551924
-SHA256 (matrix-org-synapse-v1.53.0_GH0.tar.gz) = e9fb5c8d1178996e677f6ce8f44c11d9294da0a06297fffa34706879870f9bf4
-SIZE (matrix-org-synapse-v1.53.0_GH0.tar.gz) = 7696244
+TIMESTAMP = 1648214024
+SHA256 (matrix-org-synapse-v1.55.2_GH0.tar.gz) = 8e06cb264d1631d2518f2f726c89d62c5ed7148b73fbb8190a9c120d3166e7c4
+SIZE (matrix-org-synapse-v1.55.2_GH0.tar.gz) = 7739760
diff --git a/net-im/py-matrix-synapse/files/patch-synapse_python__dependencies.py b/net-im/py-matrix-synapse/files/patch-synapse_python__dependencies.py
index 342f69ef66bf..f6d0e485233d 100644
--- a/net-im/py-matrix-synapse/files/patch-synapse_python__dependencies.py
+++ b/net-im/py-matrix-synapse/files/patch-synapse_python__dependencies.py
@@ -1,11 +1,11 @@
---- synapse/python_dependencies.py.orig	2022-02-22 11:32:11 UTC
+--- synapse/python_dependencies.py.orig	2022-03-24 17:18:43 UTC
 +++ synapse/python_dependencies.py
-@@ -86,7 +87,7 @@ REQUIREMENTS = [
-     "typing-extensions>=3.7.4",
+@@ -80,7 +80,7 @@ REQUIREMENTS = [
+     "typing-extensions>=3.10.0",
      # We enforce that we have a `cryptography` version that bundles an `openssl`
      # with the latest security patches.
 -    "cryptography>=3.4.7",
 +    "cryptography",
-     "ijson>=3.1",
+     # ijson 3.1.4 fixes a bug with "." in property names
+     "ijson>=3.1.4",
      "matrix-common~=1.1.0",
- ]
diff --git a/net-im/py-matrix-synapse/files/pkg-message.in b/net-im/py-matrix-synapse/files/pkg-message.in
index 9bf3ac75d6c2..5280b1c46a37 100644
--- a/net-im/py-matrix-synapse/files/pkg-message.in
+++ b/net-im/py-matrix-synapse/files/pkg-message.in
@@ -31,6 +31,17 @@ details on this issue.
 
 [0] https://matrix-org.github.io/synapse/latest/turn-howto.html
 
+EOM
+}
+{ type: upgrade
+  maximum_version: 1.55.0
+  message: <<EOM
+The default room version of synapse has been increased to version 9. Consider
+changing this if interoperability with other matrix servers is an issue.
+
+If you're using Mjolnir, be advised that this version of synapse is
+incompatible with Mjolnir 1.3.1 and earlier.
+
 EOM
 }
 {