mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-07-25 12:15:32 +03:00
33 lines
1 KiB
Text
33 lines
1 KiB
Text
# Contributor: Fabian Affolter <fabian@affolter-engineering.ch>
|
|
# Maintainer: Fabian Affolter <fabian@affolter-engineering.ch>
|
|
pkgname=py3-praw
|
|
_pkgname=praw
|
|
pkgver=6.5.1
|
|
pkgrel=0
|
|
pkgdesc="A Python module to access to reddit's API"
|
|
options="!check" # missing 'Betamax' modules
|
|
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="py3-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() {
|
|
pytest-3
|
|
}
|
|
|
|
package() {
|
|
python3 setup.py install --prefix=/usr --root="$pkgdir"
|
|
}
|
|
|
|
sha512sums="b1e3ac1ced80093db601d7bd26a3105732afbe2855169e8bdfe7ca34eeebdde0c6b793f1886c58f3ab08cbc112259e9e1e20d83eac7e84e015b43e284415c991 praw-6.5.1.tar.gz"
|