aboutsummaryrefslogtreecommitdiffstats
path: root/testing/py3-praw/APKBUILD
blob: 8f84b39f2ecb4913135f8ef9ecc2f95f621d4351 (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
31
32
# Contributor: Fabian Affolter <fabian@affolter-engineering.ch>
# Maintainer: Fabian Affolter <fabian@affolter-engineering.ch>
pkgname=py3-praw
_pkgname=praw
pkgver=6.4.0
pkgrel=1
pkgdesc="A Python module to access to reddit's API"
url="https://github.com/praw-dev/praw"
arch="noarch"
license="GPL-3.0-or-later"
depends="py3-prawcore py3-update-checker py3-requests py3-six py3-websocket-client"
makedepends="py3-setuptools"
checkdepends="pytest"
source="$_pkgname-$pkgver.tar.gz::https://github.com/praw-dev/praw/archive/v$pkgver.tar.gz"
builddir="$srcdir"/$_pkgname-$pkgver

replaces="py-praw" # Backwards compatibility
provides="py-praw=$pkgver-r$pkgrel" # Backwards compatibility

build() {
	python3 setup.py build
}

check() {
	python3 setup.py test
}

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

sha512sums="ca444e068cb61c16388aac2adca6874aafa588fb0aecfc94666a88405f4d9123ace6361cfeb1f3ceaab19bdc04eb9f3ffc03a8260cef80e3b6113f906e9e33f1  praw-6.4.0.tar.gz"