aports/testing/heisenbridge/APKBUILD

47 lines
1.1 KiB
Text

# Contributor: Coco Liliace <coco@liliace.dev>
# Maintainer: Coco Liliace <coco@liliace.dev>
pkgname=heisenbridge
pkgver=1.15.0
pkgrel=0
pkgdesc="Bouncer-style Matrix IRC bridge"
url="https://github.com/hifi/heisenbridge"
arch="noarch"
license="MIT"
depends="
python3
py3-irc
py3-ruamel.yaml.clib
py3-mautrix
py3-python-socks
py3-aiohttp
"
makedepends="py3-gpep517 py3-setuptools py3-wheel"
checkdepends="py3-pytest"
subpackages="$pkgname-pyc"
source="$pkgname-$pkgver.tar.gz::https://github.com/hifi/heisenbridge/archive/refs/tags/v$pkgver.tar.gz"
_distname=".dist"
prepare() {
default_prepare
echo "$pkgver" > heisenbridge/version.txt
}
build() {
gpep517 build-wheel --output-fd 3 --wheel-dir "$_distname" 3>&1 >&2
}
check() {
python3 -m venv --clear --without-pip --system-site-packages .testenv
.testenv/bin/python3 -m installer "$_distname"/*.whl
.testenv/bin/python3 -m pytest
}
package() {
gpep517 install-wheel --destdir "$pkgdir" "$_distname"/*.whl
}
sha512sums="
2679a8113a9596769a5932c341559a5d9ad3c893b6ea739e9516be26f1b36695953a500972c627eb1adb3cfefcc5f2cb5ed4ffd0fac8cf05fc4e2b05ae3fcfd2 heisenbridge-1.15.0.tar.gz
"