# Contributor: Bart Ribbers <bribbers@disroot.org>
# Maintainer: Bart Ribbers <bribbers@disroot.org>
pkgname=py3-padatious
pkgver=0.4.8
pkgrel=6
pkgdesc="A neural network intent parser"
url="http://padatious.readthedocs.io/"
arch=noarch
license="Apache-2.0"
depends="python3 py3-padaos py3-xxhash py3-fann2"
makedepends="py3-setuptools"
checkdepends="py3-pytest"
subpackages="$pkgname-pyc"
source="https://pypi.python.org/packages/source/p/padatious/padatious-$pkgver.tar.gz"
options="!check" # Tests are broken https://github.com/MycroftAI/padatious/issues/28
builddir="$srcdir/padatious-$pkgver"

build() {
	python3 setup.py build
}

check() {
	pytest
}

package() {
	python3 setup.py install --skip-build --root="$pkgdir"
}

sha512sums="f0a81cb981fd2dc0ae00f8ba4d4a02998de3ac4814472e13589ddce34ff81d710b5df1129859f11a67f4c379e76069f1ee9c6349c94053db3a208159f3f062fc  padatious-0.4.8.tar.gz"
