# Contributor: Leo <thinkabit.ukim@gmail.com>
# Maintainer: Will Sinatra <wpsinatra@gmail.com>
pkgname=py3-zope-exceptions
_pyname=zope.exceptions
pkgver=5.1
pkgrel=0
pkgdesc="Zope Exceptions"
# Cyclic dep zope.testrunner needs zope.exceptions to run, but zope.exceptions
# needs zope.testrunner on its test dependencies
options="!check"
url="https://github.com/zopefoundation/zope.exceptions"
arch="noarch"
license="ZPL-2.1"
depends="py3-zope-interface py3-setuptools"
makedepends="py3-gpep517 py3-wheel"
subpackages="$pkgname-pyc"
source="https://files.pythonhosted.org/packages/source/${_pyname:0:1}/$_pyname/$_pyname-$pkgver.tar.gz"
builddir="$srcdir/$_pyname-$pkgver"

build() {
	gpep517 build-wheel \
		--wheel-dir .dist \
		--output-fd 3 3>&1 >&2
}

package() {
	python3 -m installer -d "$pkgdir" \
		.dist/*.whl
}

sha512sums="
08e0b3b895089b35805519002f11302e6529d12257a5582f682257c4b5313c4e183d2b06241729fe542fcd407b1f29fbd6798605930b759daca335ed3df84652  zope.exceptions-5.1.tar.gz
"
