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