projects/aports·blob master · refs

51 lines · 1.2 KiB

1# Contributor: Bart Ribbers <[email protected]>
2# Maintainer: Bart Ribbers <[email protected]>
3pkgname=py3-ovos-ocp-files-plugin
4pkgver=0.13.1
5pkgrel=1
6pkgdesc="A library for reading and, in the future, writing audio metadata"
7url="https://github.com/OpenVoiceOS/ovos-ocp-files-plugin"
8arch="noarch"
9license="MIT"
10depends="
11 py3-attrs
12 py3-bidict
13 py3-bitstruct
14 py3-more-itertools
15 py3-pprintpp
16 py3-wrapt
17 "
18makedepends="
19 py3-gpep517
20 py3-setuptools
21 py3-wheel
22 "
23checkdepends="
24 py3-pytest
25 py3-ward
26 "
27subpackages="$pkgname-pyc"
28source="$pkgname-$pkgver.tar.gz::https://github.com/OpenVoiceOS/ovos-ocp-files-plugin/archive/refs/tags/$pkgver.tar.gz"
29options="!check" # Pytest fails to find fixture "description"
30builddir="$srcdir/ovos-ocp-files-plugin-$pkgver"
31
32build() {
33 gpep517 build-wheel \
34 --wheel-dir .dist \
35 --output-fd 3 3>&1 >&2
36}
37
38check() {
39 python3 -m venv --clear --without-pip --system-site-packages .testenv
40 .testenv/bin/python3 -m installer .dist/*.whl
41 .testenv/bin/python3 -m pytest
42}
43
44package() {
45 python3 -m installer -d "$pkgdir" \
46 .dist/*.whl
47}
48
49sha512sums="
5083c7df6e5596663c86779f29351825bcf65fea4fc62aa4563d5222f2bb08086e8ebe585508836d8b937cb3e00249ee5a28dc716877a1b12e96b2011515d69a24 py3-ovos-ocp-files-plugin-0.13.1.tar.gz
51"