# Contributor: Clayton Craft # Maintainer: Clayton Craft pkgname=weechat-matrix pkgver=0.3.0_git20220304 pkgrel=4 _commit="c2d2a52283f203e47ffd642c2a2845cbf5b7e980" pkgdesc="WeeChat Matrix protocol script" url="https://github.com/poljar/weechat-matrix" arch="noarch" license="MIT" depends=" py3-aiohttp py3-atomicwrites py3-attrs py3-cachetools py3-magic py3-matrix-nio py3-olm py3-openssl py3-peewee py3-pygments py3-requests py3-webcolors python3 weechat weechat-python xdg-utils " makedepends=" py3-gpep517 py3-importlib-metadata py3-installer py3-poetry-core py3-setuptools py3-wheel " checkdepends=" py3-hypothesis py3-pytest " install="$pkgname.post-install" subpackages="$pkgname-pyc" source="$pkgname-$_commit.tar.gz::https://github.com/poljar/weechat-matrix/archive/$_commit.tar.gz poetry-core.patch " builddir="$srcdir/$pkgname-$_commit" build() { gpep517 build-wheel \ --wheel-dir .dist \ --output-fd 3 3>&1 >&2 } check() { python3 -m pytest } package() { python3 -m installer --destdir="$pkgdir" .dist/*.whl install -Dm755 main.py "$pkgdir/usr/share/weechat/python/weechat-matrix.py" for _script in matrix_decrypt matrix_sso_helper matrix_upload; do install -Dm755 "contrib/$_script.py" "$pkgdir/usr/bin/$_script" done } sha512sums=" 7a4e6e72ba01f8f8cfd033d64ec383ef1c3203feea4b581e678ce7f22da7ba38619086dff6fc40bb2cfd04f410749456850bb9d331a3294f4e0663799b0c8435 weechat-matrix-c2d2a52283f203e47ffd642c2a2845cbf5b7e980.tar.gz d28d2a55daddae3319fcc4ceccf2b06826dc9af0b4ec76aa3f843008954b5c9a2e24aa7aecc8d480753a1355c5dbd104ceefc0a9a87c9e9e5f4dddca52fec9f7 poetry-core.patch "