# Contributor: Fabian Affolter # Maintainer: Fabian Affolter pkgname=py3-praw _pkgname=praw pkgver=7.7.0 pkgrel=0 pkgdesc="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-websocket-client" makedepends=" py3-gpep517 py3-setuptools py3-wheel " checkdepends=" py3-betamax py3-betamax_matchers py3-betamax_serializers py3-pytest-xdist " 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() { gpep517 build-wheel \ --wheel-dir dist \ --output-fd 3 3>&1 >&2 } check() { python3 -m venv --clear --without-pip --system-site-packages testenv testenv/bin/python3 -m installer dist/*.whl testenv/bin/python3 -m pytest -n auto } package() { python3 -m installer -d "$pkgdir" \ dist/*.whl } sha512sums=" 40a8882cdcaa10f538f9cf9552414184050b16008eed4c4e31fc52dfc0d337daad6bd1041d462d26476c692ae8997f675cf5ce2630d8d8be091023b7deb98181 praw-7.7.0.tar.gz "