1 # Template file for 'synapse'
5 build_style=python3-pep517
7 make_check_target=tests
8 make_install_target="dist/matrix_synapse-${version}-*-*-*.whl"
9 hostmakedepends="python3-poetry-core python3-setuptools-rust cargo"
10 makedepends="rust-std python3-devel"
11 depends="python3-jsonschema python3-immutabledict python3-unpaddedbase64
12 python3-canonicaljson python3-signedjson python3-pynacl
13 python3-service_identity python3-Twisted python3-openssl python3-yaml
14 python3-pyasn1 python3-pyasn1-modules python3-bcrypt python3-Pillow
15 python3-psutil python3-msgpack python3-phonenumbers python3-prometheus_client
16 python3-attrs python3-netaddr python3-setuptools python3-bleach python3-Jinja2
17 python3-psycopg2 python3-lxml python3-saml2 python3-treq python3-macaroons
18 python3-sortedcontainers python3-typing_extensions python3-cryptography
19 python3-ijson python3-matrix-common python3-packaging python3-pydantic
21 checkdepends="$depends python3-parameterized python3-hiredis xmlsec1 unzip"
22 short_desc="Matrix reference homeserver"
23 maintainer="Joel Beckmeyer <joel@beckmeyer.us>"
24 license="AGPL-3.0-or-later"
25 homepage="https://element-hq.github.io/synapse"
26 changelog="https://raw.githubusercontent.com/element-hq/synapse/develop/CHANGES.md"
27 distfiles="https://github.com/element-hq/synapse/archive/refs/tags/v${version}.tar.gz"
28 checksum=1dde163a9e2efe34f16aa67161897327f116352ac95819cc5d387776e61706a9
30 system_accounts="synapse"
31 synapse_homedir="/var/lib/synapse"
34 /var/lib/synapse 0700 synapse synapse
35 /etc/synapse 755 synapse synapse
36 /var/log/synapse 0755 synapse synapse"
39 yes | unzip ${make_install_target} "*.dist-info/*"
40 [ -d build/lib* ] && cp -r tests build/lib*
44 PYTHONPATH="$(cd build/lib* && pwd):." trial3 ${makejobs} tests
48 rm -r build/lib*/tests
54 vsconf docs/sample_config.yaml homeserver.yaml
55 vsconf docs/sample_log_config.yaml log.yaml