aboutsummaryrefslogtreecommitdiffstats
path: root/community/py3-wikipedia/APKBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'community/py3-wikipedia/APKBUILD')
-rw-r--r--community/py3-wikipedia/APKBUILD28
1 files changed, 28 insertions, 0 deletions
diff --git a/community/py3-wikipedia/APKBUILD b/community/py3-wikipedia/APKBUILD
new file mode 100644
index 0000000000..879aac8c45
--- /dev/null
+++ b/community/py3-wikipedia/APKBUILD
@@ -0,0 +1,28 @@
+# Contributor: Bart Ribbers <bribbers@disroot.org>
+# Maintainer: Bart Ribbers <bribbers@disroot.org>
+pkgname=py3-wikipedia
+pkgver=1.4.5
+pkgrel=2
+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 --prefix=/usr --root="$pkgdir"
+}
+
+sha512sums="1d5f95f568ef4f479f16416d5474db5ce1bf5588a4d30c51d22fea6dd9d052ee0176829cf60e3c720fcb20fd862bae21d320407b370fdfe0a7d468b770d37735 wikipedia-v1.4.5.tar.gz"