# Contributor: Jiri Kastner # Contributor: Duncan Bellamy # Maintainer: Duncan Bellamy pkgname=py3-zc.lockfile pkgver=3.0 pkgrel=1 pkgdesc="Basic inter-process locks" url="https://github.com/zopefoundation/zc.lockfile" arch="noarch" license="MIT" depends="python3" makedepends="py3-gpep517 py3-setuptools py3-wheel" checkdepends="py3-zope-testing py3-zope-testrunner" subpackages="$pkgname-pyc" source="https://files.pythonhosted.org/packages/source/z/zc.lockfile/zc.lockfile-$pkgver.tar.gz" builddir="$srcdir/zc.lockfile-$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 zope.testrunner --test-path=src } package() { python3 -m installer -d "$pkgdir" .dist/*.whl } sha512sums=" 65662d03933b0e295d69971a74a1d1ddf67086287bd98752d6d23d793130b0c612413c0dba365f7fa2213a5ef0981fc20bccbde304dc36a4092ad1f702ee9429 zc.lockfile-3.0.tar.gz "