# Contributor: Stuart Cardall # Contributor: Maxim Karasev # Maintainer: Stuart Cardall pkgname=py3-pluggy _pkgname=pluggy pkgver=1.2.0 pkgrel=0 pkgdesc="Plugin management and hook calling for Python" # Needs py3-pytest for checkdepends, which require py3-pluggy # in depends, so disable here to break a circular dependency options="!check" url="https://pluggy.readthedocs.io/en/latest/" arch="noarch" license="MIT" makedepends=" py3-gpep517 py3-setuptools_scm py3-wheel " checkdepends="py3-pytest" subpackages="$pkgname-pyc" source="https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz" builddir="$srcdir/$_pkgname-$pkgver" 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=" b2b6a80737c06e1507eb12513ed7f5ce508fd4a139c559a3a15d9f173f4455ef3847783efb91c32eca6e26cbe37b0336467d50c5db0563d8dbd17bd825cd7407 pluggy-1.2.0.tar.gz "