# Contributor: Philipp Glaum # Maintainer: Philipp Glaum pkgname=py3-guessit pkgver=3.7.1 pkgrel=1 pkgdesc="Library for guessing information from video filenames" url="https://pypi.org/project/guessit/" arch="noarch" license="LGPL-3.0-only" depends=" python3 py3-rebulk py3-babelfish py3-dateutil py3-six " makedepends=" py3-gpep517 py3-setuptools py3-wheel " checkdepends=" py3-pytest-benchmark py3-pytest-mock py3-pytest-xdist py3-yaml " subpackages="$pkgname-pyc" source="https://files.pythonhosted.org/packages/source/g/guessit/guessit-$pkgver.tar.gz" builddir="$srcdir/guessit-$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 -W ignore::DeprecationWarning } package() { python3 -m installer -d "$pkgdir" \ .dist/*.whl rm -rf "$pkgdir"/usr/lib/python3*/site-packages/guessit/test } sha512sums=" 4932407ca3a283a756291a69ef4cd4dcd96ea9c37b6d30331f134b2285960afb1f6adecdb299474ef7dfdea4b6e2e029ddab0789998efe7aea13d0e5bb8c54d6 guessit-3.7.1.tar.gz "