# Contributor: Fabian Affolter # Maintainer: Fabian Affolter pkgname=py3-praw _pkgname=praw pkgver=4.0.0 pkgrel=4 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-decorator" makedepends="py3-setuptools" checkdepends="pytest" source="$_pkgname-$pkgver.tar.gz::https://github.com/praw-dev/praw/archive/v$pkgver.tar.gz relax-version-requirements.patch" 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="adf33b1e51cbbf1ed96ed57360ba25c9449e6649b6bd923d392c74814a2e296dec5b5bcae963dc8428dfb6d047a2eeaaf1fe6e902cfb9081b0875ab95e9dde6b praw-4.0.0.tar.gz d24fe8e817963fdc374d00faf2d18a2383b65feb8a06adc84b77663f43c123824caf03219546dcf3ebbb605e6f31e5f6963291b9aa632a6af8c8009ca38a5f75 relax-version-requirements.patch"