aboutsummaryrefslogtreecommitdiffstats
path: root/testing/py3-coreapi/APKBUILD
blob: 9d0a45bb0d553a67c1f88949f2ea385b9d2efc91 (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
# Contributor: Leo <thinkabit.ukim@gmail.com>
# Maintainer:
pkgname=py3-coreapi
_pkgname=python-client
pkgver=2.3.3
pkgrel=1
pkgdesc="Python3 client library for Core API"
url="https://github.com/core-api/python-client"
arch="noarch"
license="BSD-3-Clause"
depends="py3-setuptools py3-coreschema py3-requests py3-itypes py3-uritemplate"
checkdepends="py3-pytest py3-coverage"
source="$pkgname-$pkgver.tar.gz::https://github.com/core-api/python-client/archive/$pkgver.tar.gz"
builddir="$srcdir/$_pkgname-$pkgver"

build() {
	python3 setup.py build
}

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

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

sha512sums="aeae3ace84c0ce61552236b83db28e47492f5ac17a0e216e1a8eeddaf67270b94127f7a40f8a37cc5051abe097555adfd690a7e6c8801524ca77c916bd451ab8  py3-coreapi-2.3.3.tar.gz"