# Contributor: Bart Ribbers # Maintainer: Bart Ribbers pkgname=py3-ovos-ocp-files-plugin pkgver=0.13.0 pkgrel=0 pkgdesc="A library for reading and, in the future, writing audio metadata" url="https://github.com/OpenVoiceOS/ovos-ocp-files-plugin" arch="noarch" license="MIT" depends=" py3-attrs py3-bidict py3-bitstruct py3-more-itertools py3-pprintpp py3-wrapt " makedepends=" py3-gpep517 py3-setuptools py3-wheel " checkdepends=" py3-pytest py3-ward " subpackages="$pkgname-pyc" source="$pkgname-$pkgver.tar.gz::https://github.com/OpenVoiceOS/ovos-ocp-files-plugin/archive/refs/tags/V$pkgver.tar.gz" options="!check" # Pytest fails to find fixture "description" builddir="$srcdir/ovos-ocp-files-plugin-$pkgver" build() { gpep517 build-wheel \ --wheel-dir .dist \ --output-fd 3 3>&1 >&2 } check() { python3 -m venv --clear --without-pip --system-site-packages .testenv .testenv/bin/python3 -m installer .dist/*.whl .testenv/bin/python3 -m pytest } package() { python3 -m installer -d "$pkgdir" \ .dist/*.whl } sha512sums=" 737c8e319e86f58e6523597ceba2b142ef7adb956c169c2c68194b1bea5ebcd5ce22221ca158c6db97b3fc0c54afe968356268e25b84cac68b10133d98f152ed py3-ovos-ocp-files-plugin-0.13.0.tar.gz "