mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-08-05 21:37:15 +02:00
project changed urls and switched from poetry-core to setuptools, which was previously in checkdepends
68 lines
1.4 KiB
Plaintext
68 lines
1.4 KiB
Plaintext
# Contributor: Antoine Fontaine <antoine.fontaine@epfl.ch>
|
|
# Maintainer: Celeste <cielesti@protonmail.com>
|
|
pkgname=py3-matrix-nio
|
|
pkgver=0.25.1
|
|
pkgrel=0
|
|
pkgdesc="Python Matrix client library"
|
|
url="https://github.com/matrix-nio/matrix-nio"
|
|
arch="noarch"
|
|
license="ISC"
|
|
depends="
|
|
py3-aiofiles
|
|
py3-aiohttp
|
|
py3-aiohttp-socks
|
|
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
|
|
"
|
|
makedepends="
|
|
py3-gpep517
|
|
py3-setuptools
|
|
"
|
|
subpackages="$pkgname-pyc"
|
|
source="https://github.com/matrix-nio/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="
|
|
72c7d7602aa5a37631a7a1273034e4db4c3b4671259e9bc1fccdcbd4719bfa4372bb70e279331fdc02664149f637f93ad8adf10655d41c41dc691f4d6dc876bf matrix-nio-0.25.1.tar.gz
|
|
"
|