aports/testing/py3-ovos-ocp-files-plugin/APKBUILD
2024-09-12 21:23:16 +00:00

51 lines
1.2 KiB
Text

# Contributor: Bart Ribbers <bribbers@disroot.org>
# Maintainer: Bart Ribbers <bribbers@disroot.org>
pkgname=py3-ovos-ocp-files-plugin
pkgver=0.13.1
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/$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="
83c7df6e5596663c86779f29351825bcf65fea4fc62aa4563d5222f2bb08086e8ebe585508836d8b937cb3e00249ee5a28dc716877a1b12e96b2011515d69a24 py3-ovos-ocp-files-plugin-0.13.1.tar.gz
"