aboutsummaryrefslogtreecommitdiffstats
path: root/testing/py3-prawcore/APKBUILD
blob: 9769a9189da88a683c1b3695c1ae0402f2ac4e8c (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
# Contributor: Kevin Daudt <kdaudt@alpinelinux.org>
# Maintainer: Kevin Daudt <kdaudt@alpinelinux.org>
pkgname=py3-prawcore
pkgver=1.0.1
pkgrel=4
pkgdesc="a low-level communication layer for PRAW 4+"
options="net" # To fetch unpackaged test dependencies
url="https://github.com/praw-dev/prawcore"
arch="noarch"
license="BSD-2-Clause"
depends="py3-setuptools py3-requests"
checkdepends="py3-mock"
source="$pkgname-$pkgver.tar.gz::https://github.com/praw-dev/prawcore/archive/v$pkgver.tar.gz"
builddir="$srcdir/prawcore-$pkgver"

build() {
	python3 setup.py build
}

check() {
	python3 setup.py test
}

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

sha512sums="6efe8faa685aa92a04309c4c24963a2a540335ad0bed31b990d840732ddf726789688171f4ead4daf831e89da5c95c17861a079dfc9ae3de254d2690bcff1c8b  py3-prawcore-1.0.1.tar.gz"