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.diff -r1.21 -r1.22 pkgsrc/chat/matrix-synapse/Makefile
(js)
@@ -1,16 +1,17 @@ | @@ -1,16 +1,17 @@ | |||
1 | # $NetBSD: Makefile,v 1.21 2021/04/28 21:25:57 js Exp $ | 1 | # $NetBSD: Makefile,v 1.22 2021/04/28 23:44:56 js Exp $ | |
2 | 2 | |||
3 | DISTNAME= matrix-synapse-1.32.2 | 3 | DISTNAME= matrix-synapse-1.32.2 | |
4 | PKGREVISION= 1 | |||
4 | CATEGORIES= chat | 5 | CATEGORIES= chat | |
5 | MASTER_SITES= ${MASTER_SITE_GITHUB:=matrix-org/} | 6 | MASTER_SITES= ${MASTER_SITE_GITHUB:=matrix-org/} | |
6 | EGG_NAME= matrix_synapse-${PKGVERSION_NOREV} | 7 | EGG_NAME= matrix_synapse-${PKGVERSION_NOREV} | |
7 | GITHUB_PROJECT= synapse | 8 | GITHUB_PROJECT= synapse | |
8 | GITHUB_TAG= v${PKGVERSION_NOREV} | 9 | GITHUB_TAG= v${PKGVERSION_NOREV} | |
9 | 10 | |||
10 | MAINTAINER= js@pkgsrc.org | 11 | MAINTAINER= js@pkgsrc.org | |
11 | HOMEPAGE= https://github.com/matrix-org/synapse/ | 12 | HOMEPAGE= https://github.com/matrix-org/synapse/ | |
12 | COMMENT= Reference homeserver for the Matrix decentralised comms protocol | 13 | COMMENT= Reference homeserver for the Matrix decentralised comms protocol | |
13 | LICENSE= apache-2.0 | 14 | LICENSE= apache-2.0 | |
14 | 15 | |||
15 | DEPENDS+= ${PYPKGPREFIX}-sqlite3>=0:../../databases/py-sqlite3 | 16 | DEPENDS+= ${PYPKGPREFIX}-sqlite3>=0:../../databases/py-sqlite3 | |
16 | DEPENDS+= ${PYPKGPREFIX}-jsonschema>=2.5.1:../../textproc/py-jsonschema | 17 | DEPENDS+= ${PYPKGPREFIX}-jsonschema>=2.5.1:../../textproc/py-jsonschema |
@@ -1,6 +1,7 @@ | @@ -1,6 +1,7 @@ | |||
1 | $NetBSD: distinfo,v 1.14 2021/04/28 21:25:57 js Exp $ | 1 | $NetBSD: distinfo,v 1.15 2021/04/28 23:44:56 js Exp $ | |
2 | 2 | |||
3 | SHA1 (matrix-synapse-1.32.2.tar.gz) = caa85c36988695132053d193f3ed1284e27c9011 | 3 | SHA1 (matrix-synapse-1.32.2.tar.gz) = caa85c36988695132053d193f3ed1284e27c9011 | |
4 | RMD160 (matrix-synapse-1.32.2.tar.gz) = ec8ec6bc81dd875de924c413f10d9437436ba47a | 4 | RMD160 (matrix-synapse-1.32.2.tar.gz) = ec8ec6bc81dd875de924c413f10d9437436ba47a | |
5 | SHA512 (matrix-synapse-1.32.2.tar.gz) = 123a419558763df84f48a4f7cd66beb67ee1bb20ed9cbbb8138d3e9162247bd17bbf81c7360cc49637fa670e0554a39a4666dab81aa473e8fbf82e70590b45f0 | 5 | SHA512 (matrix-synapse-1.32.2.tar.gz) = 123a419558763df84f48a4f7cd66beb67ee1bb20ed9cbbb8138d3e9162247bd17bbf81c7360cc49637fa670e0554a39a4666dab81aa473e8fbf82e70590b45f0 | |
6 | Size (matrix-synapse-1.32.2.tar.gz) = 7258293 bytes | 6 | Size (matrix-synapse-1.32.2.tar.gz) = 7258293 bytes | |
7 | SHA1 (patch-synapse_python_dependencies.py) = 1b58769d30514900266f828f0e60fb5bcce7240c |
$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 = {