Wed Apr 28 23:44:57 2021 UTC ()
chat/matrix-synapse: Patch out py-cryptography check

It doesn't need a version this high (which would require Rust) and it was added
by upstream as an ugly hack to force a patched OpenSSL, in case it is linked
statically.


(js)
diff -r1.21 -r1.22 pkgsrc/chat/matrix-synapse/Makefile
diff -r1.14 -r1.15 pkgsrc/chat/matrix-synapse/distinfo
diff -r0 -r1.1 pkgsrc/chat/matrix-synapse/patches/patch-synapse_python_dependencies.py

cvs diff -r1.21 -r1.22 pkgsrc/chat/matrix-synapse/Makefile (expand / switch to context diff)
--- pkgsrc/chat/matrix-synapse/Makefile 2021/04/28 21:25:57 1.21
+++ pkgsrc/chat/matrix-synapse/Makefile 2021/04/28 23:44:56 1.22
@@ -1,6 +1,7 @@
-# $NetBSD: Makefile,v 1.21 2021/04/28 21:25:57 js Exp $
+# $NetBSD: Makefile,v 1.22 2021/04/28 23:44:56 js Exp $
 
 DISTNAME=	matrix-synapse-1.32.2
+PKGREVISION=	1
 CATEGORIES=	chat
 MASTER_SITES=	${MASTER_SITE_GITHUB:=matrix-org/}
 EGG_NAME=	matrix_synapse-${PKGVERSION_NOREV}

cvs diff -r1.14 -r1.15 pkgsrc/chat/matrix-synapse/distinfo (expand / switch to context diff)
--- pkgsrc/chat/matrix-synapse/distinfo 2021/04/28 21:25:57 1.14
+++ pkgsrc/chat/matrix-synapse/distinfo 2021/04/28 23:44:56 1.15
@@ -1,6 +1,7 @@
-$NetBSD: distinfo,v 1.14 2021/04/28 21:25:57 js Exp $
+$NetBSD: distinfo,v 1.15 2021/04/28 23:44:56 js Exp $
 
 SHA1 (matrix-synapse-1.32.2.tar.gz) = caa85c36988695132053d193f3ed1284e27c9011
 RMD160 (matrix-synapse-1.32.2.tar.gz) = ec8ec6bc81dd875de924c413f10d9437436ba47a
 SHA512 (matrix-synapse-1.32.2.tar.gz) = 123a419558763df84f48a4f7cd66beb67ee1bb20ed9cbbb8138d3e9162247bd17bbf81c7360cc49637fa670e0554a39a4666dab81aa473e8fbf82e70590b45f0
 Size (matrix-synapse-1.32.2.tar.gz) = 7258293 bytes
+SHA1 (patch-synapse_python_dependencies.py) = 1b58769d30514900266f828f0e60fb5bcce7240c

File Added: pkgsrc/chat/matrix-synapse/patches/Attic/patch-synapse_python_dependencies.py
$NetBSD: patch-synapse_python_dependencies.py,v 1.1 2021/04/28 23:44:56 js Exp $

Patch out cryptography check: It doesn't need a version this high and it was
added by upstream as an ugly hack to force a patched OpenSSL, in case it is
linked statically.

--- synapse/python_dependencies.py.orig	2021-04-22 10:09:31.000000000 +0000
+++ synapse/python_dependencies.py
@@ -83,9 +83,6 @@ REQUIREMENTS = [
     "Jinja2>=2.9",
     "bleach>=1.4.3",
     "typing-extensions>=3.7.4",
-    # We enforce that we have a `cryptography` version that bundles an `openssl`
-    # with the latest security patches.
-    "cryptography>=3.4.7;python_version>='3.6'",
 ]
 
 CONDITIONAL_REQUIREMENTS = {