synapse: update to 1.104.0.
[void-pkg.git] / srcpkgs / synapse / template
blobf9ad12f24aa656e7d0a3c49cfa804e28b91d2e9a
1 # Template file for 'synapse'
2 pkgname=synapse
3 version=1.104.0
4 revision=1
5 build_style=python3-pep517
6 build_helper=rust
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
20  python3-automat"
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"
33 make_dirs="
34         /var/lib/synapse 0700 synapse synapse
35         /etc/synapse 755 synapse synapse
36         /var/log/synapse 0755 synapse synapse"
38 pre_check() {
39         yes | unzip ${make_install_target} "*.dist-info/*"
40         [ -d build/lib* ] && cp -r tests build/lib*
43 do_check() {
44         PYTHONPATH="$(cd build/lib* && pwd):." trial3 ${makejobs} tests
47 post_check() {
48         rm -r build/lib*/tests
51 post_install() {
52         vsv synapse
54         vsconf docs/sample_config.yaml homeserver.yaml
55         vsconf docs/sample_log_config.yaml log.yaml
57         vlicense LICENSE