40 lines
901 B
Plaintext

# Contributor:
# Maintainer:
pkgname=py3-matrix-common
pkgver=1.1.0
pkgrel=1
pkgdesc="Common utilities for Synapse, Sydent and Sygnal"
url="https://github.com/matrix-org/matrix-python-common"
arch="noarch"
license="Apache-2.0"
depends="python3"
depends="python3 py3-attrs"
makedepends="
py3-build
py3-installer
py3-setuptools
py3-wheel
"
checkdepends="py3-pytest"
source="
$pkgname-$pkgver.tar.gz::https://github.com/matrix-org/matrix-python-common/archive/refs/tags/v$pkgver.tar.gz
"
builddir="$srcdir/matrix-python-common-$pkgver"
build() {
python3 -m build --no-isolation --wheel
}
check() {
python3 -m pytest
}
package() {
python3 -m installer -d "$pkgdir" \
dist/matrix_common-$pkgver-py3-none-any.whl
}
sha512sums="
22cb3844f4e442e92c1a1dc1e5d0559525c0e375063a5adb0fe7c7b5051d94cbdeb114ee12acf84ffc97e4fd9b351417a6a624fd156c98acee5dc1bb650eb2a7 py3-matrix-common-1.1.0.tar.gz
"