# Contributor: Philipp Glaum # Maintainer: Philipp Glaum pkgname=py3-pymediainfo _pkgname=pymediainfo pkgver=6.0.1 pkgrel=0 pkgdesc="Python wrapper for the MediaInfo library" url="https://pypi.org/project/pymediainfo/" arch="noarch" license="MIT" depends="libmediainfo" makedepends="py3-gpep517 py3-setuptools py3-setuptools_scm py3-wheel" checkdepends="py3-pytest-xdist py3-pytest-runner" subpackages="$pkgname-pyc" source="https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz" builddir="$srcdir/$_pkgname-$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 -n auto } package() { python3 -m installer -d "$pkgdir" \ .dist/*.whl } sha512sums=" 7b373b133911eb320248f72627f6aeb6fa04705b55500639d18094ed8227296fd744c2c4b76d765e8b2d98d78f443114e9ca7ef8e2e0eb498d48d2b46956f952 pymediainfo-6.0.1.tar.gz "