mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-09-21 21:51:34 +02:00
73 lines
1.5 KiB
Plaintext
73 lines
1.5 KiB
Plaintext
# Contributor: Antoine Fontaine <antoine.fontaine@epfl.ch>
|
|
# Maintainer:
|
|
pkgname=py3-matrix-nio
|
|
pkgver=0.19.0
|
|
pkgrel=2
|
|
pkgdesc="Python interface to DBus notifications"
|
|
url="https://github.com/poljar/matrix-nio"
|
|
arch="noarch"
|
|
license="ISC"
|
|
depends="
|
|
python3
|
|
py3-aiofiles
|
|
py3-aiohttp
|
|
py3-aiohttp-socks
|
|
py3-atomicwrites
|
|
py3-cachetools
|
|
py3-future
|
|
py3-h11
|
|
py3-h2
|
|
py3-jsonschema
|
|
py3-logbook
|
|
py3-olm
|
|
py3-peewee
|
|
py3-pycryptodome
|
|
py3-unpaddedbase64
|
|
"
|
|
checkdepends="
|
|
py3-aioresponses
|
|
py3-faker
|
|
py3-hpack
|
|
py3-hyperframe
|
|
py3-hypothesis
|
|
py3-mypy
|
|
py3-pytest
|
|
py3-pytest-aiohttp
|
|
py3-pytest-asyncio
|
|
py3-pytest-benchmark
|
|
py3-pytest-cov
|
|
py3-pytest-isort
|
|
"
|
|
makedepends="
|
|
py3-build
|
|
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() {
|
|
# XXX: hack to make poetry not ignore files
|
|
GIT_DIR=. python3 -m build --no-isolation --wheel
|
|
}
|
|
|
|
check() {
|
|
python3 -m installer -d testenv \
|
|
dist/matrix_nio-$pkgver-py3-none-any.whl
|
|
local sitedir="$(python3 -c 'import site;print(site.getsitepackages()[0])')"
|
|
# test_connect_wrapper requires a network connection
|
|
PYTHONPATH="$PWD/testenv/$sitedir" python3 -m pytest -k 'not test_connect_wrapper'
|
|
|
|
}
|
|
|
|
package() {
|
|
python3 -m installer -d "$pkgdir" \
|
|
dist/matrix_nio-$pkgver-py3-none-any.whl
|
|
}
|
|
|
|
sha512sums="
|
|
395b305c69507b852d06319d00a68417494a69a1217f194a04a3866d81185fdc480e957570b22e2eff900e6874cf1c86b598dd474948902a96537fa0ef174877 matrix-nio-0.19.0.tar.gz
|
|
"
|