mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-07-23 03:05:48 +03:00
72 lines
1.4 KiB
Text
72 lines
1.4 KiB
Text
# Contributor: Antoine Fontaine <antoine.fontaine@epfl.ch>
|
|
# Maintainer:
|
|
pkgname=py3-matrix-nio
|
|
pkgver=0.20.1
|
|
pkgrel=0
|
|
pkgdesc="Python Matrix client library"
|
|
url="https://github.com/poljar/matrix-nio"
|
|
arch="noarch"
|
|
license="ISC"
|
|
depends="
|
|
python3
|
|
py3-aiofiles
|
|
py3-aiohttp
|
|
py3-aiohttp-socks
|
|
py3-future
|
|
py3-h11
|
|
py3-h2
|
|
py3-jsonschema
|
|
py3-logbook
|
|
py3-pycryptodome
|
|
py3-unpaddedbase64
|
|
"
|
|
checkdepends="
|
|
py3-aioresponses
|
|
py3-atomicwrites
|
|
py3-cachetools
|
|
py3-faker
|
|
py3-hpack
|
|
py3-hyperframe
|
|
py3-hypothesis
|
|
py3-mypy
|
|
py3-olm
|
|
py3-peewee
|
|
py3-pytest
|
|
py3-pytest-aiohttp
|
|
py3-pytest-asyncio
|
|
py3-pytest-benchmark
|
|
py3-pytest-cov
|
|
py3-pytest-isort
|
|
py3-setuptools
|
|
"
|
|
makedepends="
|
|
py3-gpep517
|
|
py3-installer
|
|
py3-poetry-core
|
|
"
|
|
source="
|
|
https://github.com/poljar/matrix-nio/archive/$pkgver/matrix-nio-$pkgver.tar.gz
|
|
"
|
|
builddir="$srcdir/matrix-nio-$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
|
|
# test_connect_wrapper requires a network connection
|
|
testenv/bin/python3 -m pytest -k 'not test_connect_wrapper'
|
|
|
|
}
|
|
|
|
package() {
|
|
python3 -m installer -d "$pkgdir" dist/*.whl
|
|
}
|
|
|
|
sha512sums="
|
|
1a9dfd6b7ac4f339e2db7bc145af7380c0d4f441bdc6281bd0afbc522bf56b036c2c276d727562d6448cf2b136819a53caca02abe4083247d39fd4205831de17 matrix-nio-0.20.1.tar.gz
|
|
"
|