mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-06-04 11:14:48 +02:00
47 lines
1.1 KiB
Text
47 lines
1.1 KiB
Text
# Contributor: Coco Liliace <coco@liliace.dev>
|
|
# Maintainer: Coco Liliace <coco@liliace.dev>
|
|
pkgname=heisenbridge
|
|
pkgver=1.15.3
|
|
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="
|
|
02bc41f932b58eea46aa016eb690ed88ed92bc6ca7680e3feaffb6976034cc3be09ccb7273858adc2e44100a49567d189a6bae5b7b80689dd3fa57d9aed6908b heisenbridge-1.15.3.tar.gz
|
|
"
|