Date: Friday, September 30, 2022 @ 14:01:24 Author: alex19ep Revision: 1319149
upgpkg: matrix-synapse 1.68.0-1 upstream release Modified: matrix-synapse/trunk/PKGBUILD ----------+ PKGBUILD | 22 +++++++++++++++++----- 1 file changed, 17 insertions(+), 5 deletions(-) Modified: PKGBUILD =================================================================== --- PKGBUILD 2022-09-30 13:59:12 UTC (rev 1319148) +++ PKGBUILD 2022-09-30 14:01:24 UTC (rev 1319149) @@ -3,11 +3,11 @@ # Contributor: Ivan Shapovalov <[email protected]> pkgname=matrix-synapse -pkgver=1.67.0 +pkgver=1.68.0 pkgrel=1 pkgdesc="Matrix reference homeserver" url="https://github.com/matrix-org/synapse" -arch=('any') +arch=('x86_64') license=('Apache') depends=('libwebp' 'python-ijson' 'python-jsonschema' 'python-twisted' 'python-pyopenssl' 'python-yaml' 'python-pyasn1' 'python-pynacl' @@ -20,7 +20,7 @@ 'python-attrs' 'python-netaddr' 'python-sortedcontainers' 'python-treq' 'python-idna' 'python-jinja' 'python-matrix-common' 'python-bleach' 'python-typing_extensions' 'systemd') -makedepends=(git python-build python-installer python-wheel python-poetry) +makedepends=(git python-build python-installer python-wheel python-poetry python-setuptools-rust) checkdepends=('python-pip' 'python-authlib' 'python-pyjwt' 'python-lxml' 'python-parameterized' 'python-txredisapi' 'python-hiredis') optdepends=('perl: sync_room_to_group.pl' @@ -55,6 +55,12 @@ 'F124520CEEE062448FE1C8442D2EFA2F32FBE047' '58C4E75BC67C92169A7FDD11FBCE0ACE0732186F') +prepare() { + cd $pkgname + # https://github.com/matrix-org/synapse/issues/13926 + git cherry-pick --no-commit 6f0c3e669da458e838e7b4b165a13e8a5312d6d0 +} + build() { cd $pkgname python -m build --wheel --no-isolation @@ -62,8 +68,14 @@ check() { cd $pkgname - pip install dist/*.whl - PYTHONPATH="$PWD" python -m twisted.trial -j8 tests + local python_version=$(python -c 'import sys; print("".join(map(str, sys.version_info[:2])))') + python -m venv --system-site-packages test-env + test-env/bin/python -m installer dist/*.whl + pushd build/lib.linux-$CARCH-cpython-${python_version} + ln -sv ../../tests . + PYTHONPATH="$PWD" PATH="../../test-env/bin:$PATH" ../../test-env/bin/python -m twisted.trial -j4 tests + rm -r tests _trial_temp + popd } package() {
