aboutsummaryrefslogtreecommitdiffstats
path: root/community/py3-matrix-nio/APKBUILD
blob: e4da6b37147ca5bb5df913f2b2275c999aa0bf02 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
# Contributor: Antoine Fontaine <antoine.fontaine@epfl.ch>
# Maintainer: Antoine Fontaine <antoine.fontaine@epfl.ch>
pkgname=py3-matrix-nio
pkgver=0.15.2
pkgrel=0
pkgdesc="Python interface to DBus notifications"
url="https://github.com/poljar/matrix-nio"
arch="noarch !mips64" # blocked by py3-olm
license="ISC"
depends="
	python3
	py3-aiofiles
	py3-aiohttp
	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-benchmark
	py3-pytest-cov
	py3-pytest-isort
	"
makedepends="
	py3-setuptools
	"
source="
	https://github.com/poljar/matrix-nio/archive/$pkgver/matrix-nio-$pkgver.tar.gz
	0001-CI-Fix-our-tox-setup-for-github-CI.patch
	"
builddir="$srcdir/matrix-nio-$pkgver"

build() {
	python3 setup.py build
}

check() {
	# test_connect_wrapper requires a network connection
	PYTHONPATH="$PWD/build/lib" pytest -k 'not test_connect_wrapper'
}

package() {
	python3 setup.py install --prefix=/usr --root="$pkgdir"
}

sha512sums="2805ac328425b5686320da969838d865d6ab17ede59b372ff9c04923ac246aa86a552e480b305c4769524f599393d6cc4a7ff75bae250d3cfebff8b8b9ed710e  matrix-nio-0.15.2.tar.gz
6f339ccccefda38fac0c21b195eaf84d18a03d42a5fc635213d4e786e4501a5535281bc244180797b3280b9440f6ab67fd764bdd2e522eb9da9a098502067f23  0001-CI-Fix-our-tox-setup-for-github-CI.patch"