aboutsummaryrefslogtreecommitdiffstats
path: root/community/py3-brotlipy/APKBUILD
blob: 7db26cc83ed50d929fef32c5354a8346562b37ef (plain)
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
# Contributor: arx <thinkabit.ukim@gmail.com>
# Maintainer: arx <thinkabit.ukim@gmail.com>
pkgname=py3-brotlipy
_pkgname=brotlipy
pkgver=0.7.0
pkgrel=3
pkgdesc="Python bindings for the Brotli compression library"
options="!check" # Tests fail with new pytest
url="https://github.com/python-hyper/brotlicffi"
arch="all"
license="MIT"
depends="python3"
makedepends="py3-setuptools python3-dev py3-cffi"
checkdepends="py3-pytest py3-hypothesis py3-pytest-runner"
source="https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz"
builddir="$srcdir/brotlipy-$pkgver"

build() {
	python3 setup.py build
}

check() {
	PYTHONPATH="$(echo $PWD/build/lib.*)" py.test-3
}

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

sha512sums="2a01e5b2d217043f13316afc4f54569c5dff76d31c296d4be563a5851195380ab80a33a3035ca95effdebffb45806fb9a431a181bba6f9af205b7f5576937268  brotlipy-0.7.0.tar.gz"