mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-07-23 03:05:48 +03:00
this marginally increases install speed by not checking if it needs a rebuild. also remove --prefix=/usr as it defaults to /usr already. might break a build or two, will fix later
28 lines
778 B
Text
28 lines
778 B
Text
# Contributor: Bart Ribbers <bribbers@disroot.org>
|
|
# Maintainer: Bart Ribbers <bribbers@disroot.org>
|
|
pkgname=py3-wikipedia
|
|
pkgver=1.4.5
|
|
pkgrel=4
|
|
pkgdesc="Wikipedia API for Python"
|
|
url="https://github.com/barrust/Wikipedia"
|
|
arch="noarch"
|
|
license="MIT"
|
|
depends="python3 py3-beautifulsoup4 py-requests"
|
|
makedepends="py3-setuptools"
|
|
checkdepends="py3-pytest"
|
|
source="https://github.com/barrust/wikipedia/archive/v$pkgver/wikipedia-v$pkgver.tar.gz"
|
|
builddir="$srcdir/Wikipedia-$pkgver"
|
|
|
|
build() {
|
|
python3 setup.py build
|
|
}
|
|
|
|
check() {
|
|
pytest
|
|
}
|
|
|
|
package() {
|
|
python3 setup.py install --skip-build --root="$pkgdir"
|
|
}
|
|
|
|
sha512sums="1d5f95f568ef4f479f16416d5474db5ce1bf5588a4d30c51d22fea6dd9d052ee0176829cf60e3c720fcb20fd862bae21d320407b370fdfe0a7d468b770d37735 wikipedia-v1.4.5.tar.gz"
|