# Contributor: Dmitry Romanenko # Maintainer: Dmitry Romanenko pkgname=py3-filelock _pkgname=filelock pkgver=3.12.2 pkgrel=0 pkgdesc="A platform independent file lock for Python3" url="https://github.com/tox-dev/py-filelock" arch="noarch" license="Unlicense" depends="python3" makedepends=" py3-gpep517 py3-hatch-vcs py3-hatchling " checkdepends=" py3-pytest py3-pytest-mock py3-pytest-timeout " subpackages="$pkgname-pyc" source="https://files.pythonhosted.org/packages/source/f/$_pkgname/$_pkgname-$pkgver.tar.gz" builddir="$srcdir"/$_pkgname-$pkgver replaces="py-filelock" # Backwards compatibility provides="py-filelock=$pkgver-r$pkgrel" # Backwards compatibility build() { SETUPTOOLS_SCM_PRETEND_VERSION=$pkgver \ 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 } package() { python3 -m installer -d "$pkgdir" \ .dist/*.whl } sha512sums=" 0753743338c4937f57176ef2291f44a919d949c7b3aa73e3210572d670949a60a9ad3efaaaeff198704e1308c169807655bb90d399c1158e4f5c9aae4adcd486 filelock-3.12.2.tar.gz "