# Contributor: Bart Ribbers # Contributor: Antoine Martin (ayakael) # Maintainer: Antoine Martin (ayakael) pkgname=py3-portalocker pkgver=2.8.2 pkgrel=0 pkgdesc="An extended version of portalocker to lock files in Python using the with statement" url="http://portalocker.readthedocs.io/en/latest/" arch="noarch" license="PSF-2.0" depends=" py3-babel py3-imagesize py3-requests py3-snowballstemmer python3 " makedepends=" py3-setuptools py3-gpep517 py3-installer py3-wheel py3-sphinx " checkdepends=" py3-docutils py3-pytest py3-pytest-cov " subpackages="$pkgname-pyc" source="https://pypi.python.org/packages/source/p/portalocker/portalocker-$pkgver.tar.gz" # Tests requires deprecated Python package pytest-flakes and pytest-pep8 options="!check" builddir="$srcdir/portalocker-$pkgver" subpackages="$pkgname-pyc" build() { gpep517 build-wheel \ --wheel-dir dist \ --output-fd 3 3>&1 >&2 } check() { pytest -v } package() { python3 -m installer -d "$pkgdir" \ dist/*.whl } sha512sums=" 9ebd6fdbc597615c5f76bf5741556d84bc95c925e931ee708b4fccbf0908e4dc4e758be659928340675675f5ca09764f5d2621fdef9195e21c1359f7764ae1dc portalocker-2.8.2.tar.gz "