# Contributor: Bart Ribbers <bribbers@disroot.org>
# Maintainer: Bart Ribbers <bribbers@disroot.org>
pkgname=py3-librelingo-audios
pkgver=1.3.0
pkgrel=5
pkgdesc="Tools to help getting audios for LibreLingo courses"
url="https://github.com/LibreLingo/LibreLingo"
arch="noarch"
license="AGPL-3.0-only"
depends="
	py3-librelingo-utils
	py3-librelingo-yaml-loader
	python3
	"
makedepends="py3-setuptools"
checkdepends="py3-pytest"
subpackages="$pkgname-pyc"
source="https://pypi.python.org/packages/source/l/librelingo_audios/librelingo_audios-$pkgver.tar.gz"
options="!check" # No tests in the PyPi package
builddir="$srcdir/librelingo_audios-$pkgver"

build() {
	python3 setup.py build
}

check() {
	pytest
}

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

sha512sums="
28acf157e4788a2c8216f79176e58eca1269e505fe536950a634a843d7c612d31058cb976c4c2961db3a36c2ad2fdb891ded62d32519c407ab8c7a17c50b1ced  librelingo_audios-1.3.0.tar.gz
"
