mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-04-18 01:36:37 +02:00
48 lines
1.2 KiB
Text
48 lines
1.2 KiB
Text
# Contributor: fossdd <fossdd@pwned.life>
|
|
# Maintainer: fossdd <fossdd@pwned.life>
|
|
pkgname=py3-synapse-auto-accept-invite
|
|
pkgver=1.2.0
|
|
pkgrel=0
|
|
pkgdesc="Synapse module to automatically accept invites"
|
|
url="https://github.com/matrix-org/synapse-auto-accept-invite"
|
|
arch="noarch"
|
|
license="Apache-2.0"
|
|
depends="
|
|
py3-attrs
|
|
synapse
|
|
"
|
|
makedepends="
|
|
py3-gpep517
|
|
py3-setuptools
|
|
py3-wheel
|
|
"
|
|
checkdepends="
|
|
py3-aiounittest
|
|
py3-frozendict
|
|
py3-pytest
|
|
py3-twisted
|
|
"
|
|
subpackages="$pkgname-pyc"
|
|
source="$pkgname-$pkgver.tar.gz::https://github.com/matrix-org/synapse-auto-accept-invite/archive/refs/tags/v$pkgver.tar.gz"
|
|
builddir="$srcdir/synapse-auto-accept-invite-$pkgver"
|
|
|
|
build() {
|
|
gpep517 build-wheel \
|
|
--wheel-dir .dist \
|
|
--output-fd 3 3>&1 >&2
|
|
}
|
|
|
|
check() {
|
|
python3 -m venv --clear --without-pip --system-site-packages .testenv
|
|
.testenv/bin/python3 -m installer .dist/*.whl
|
|
PYTHONPATH=tests .testenv/bin/python3 -m pytest
|
|
}
|
|
|
|
package() {
|
|
python3 -m installer -d "$pkgdir" \
|
|
.dist/*.whl
|
|
}
|
|
|
|
sha512sums="
|
|
8874efe3ec03249ea876ea457483f47d6068a746f27451e43cf42c2806b3209071b323de17a96924030ef1eaa07fb18616d7216b8bd10350e9e7ae2ec069ae88 py3-synapse-auto-accept-invite-1.2.0.tar.gz
|
|
"
|