aboutsummaryrefslogtreecommitdiffstats
path: root/community/py3-adapt-parser/APKBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'community/py3-adapt-parser/APKBUILD')
-rw-r--r--community/py3-adapt-parser/APKBUILD29
1 files changed, 22 insertions, 7 deletions
diff --git a/community/py3-adapt-parser/APKBUILD b/community/py3-adapt-parser/APKBUILD
index 828fe10def..3ceb23fa39 100644
--- a/community/py3-adapt-parser/APKBUILD
+++ b/community/py3-adapt-parser/APKBUILD
@@ -1,27 +1,42 @@
# Contributor: Bart Ribbers <bribbers@disroot.org>
# Maintainer: Bart Ribbers <bribbers@disroot.org>
pkgname=py3-adapt-parser
-pkgver=0.3.7
+pkgver=0.4.0
pkgrel=0
pkgdesc="A text-to-intent parsing framework"
url="https://github.com/MycroftAI/adapt"
arch="noarch"
license="Apache-2.0"
-depends="python3 py3-pyee"
+depends="
+ py3-pyee
+ python3
+ "
makedepends="py3-setuptools"
-source="https://pypi.python.org/packages/source/a/adapt-parser/adapt-parser-$pkgver.tar.gz
+checkdepends="
+ bash
+ py3-pytest
+ "
+#source="https://pypi.python.org/packages/source/a/adapt-parser/adapt-parser-$pkgver.tar.gz
+source="$pkgname-$pkgver.tar.gz::https://github.com/MycroftAI/adapt/archive/release/v$pkgver/adapt-release/v$pkgver.tar.gz
relax-dep-requirements.patch
+ 0001-add_run_tests.sh.patch
"
-options="!check" # No tests
-builddir="$srcdir/adapt-parser-$pkgver"
+builddir="$srcdir/adapt-release-v$pkgver"
build() {
python3 setup.py build
}
+check() {
+ ./run_tests.sh test
+}
+
package() {
python3 setup.py install --prefix=/usr --root="$pkgdir"
}
-sha512sums="da98a812706f335170c7f1c0b0dfe6e8aca09ca884b043bfc960ef35d56cda8ed51cf97c98de11fa7ce1bc0ba43006fe6d7feb8ebe52d0fe6375dab51582e79e adapt-parser-0.3.7.tar.gz
-67e5af731c4fa4f42875806443517d8511cea162b82bf8f5ae5eaf1d30746bdfecea0f17f4d987b88ac800ca8aba192751fcf10d9728a802322b65b2e0f628c3 relax-dep-requirements.patch"
+sha512sums="
+8a8ff3076719dafc0832b9f41cae26c3c3f069e34505d30ce795f59e1bb14693ce0c5f383c2a84e2208e9330d4e235fae52d0fd643f3a47477264429c5d5d6dd py3-adapt-parser-0.4.0.tar.gz
+67e5af731c4fa4f42875806443517d8511cea162b82bf8f5ae5eaf1d30746bdfecea0f17f4d987b88ac800ca8aba192751fcf10d9728a802322b65b2e0f628c3 relax-dep-requirements.patch
+e5392d5f50cff597ac0c6032477122f7fbd21205b775ad0fda3279220cdf829540ff2eb476a1956da3299b13c153c57bde3d29f12055583d2d76370dc684420e 0001-add_run_tests.sh.patch
+"