# Contributor: Leo <thinkabit.ukim@gmail.com>
# Maintainer: Will Sinatra <wpsinatra@gmail.com>
maintainer="Will Sinatra <wpsinatra@gmail.com>"
pkgname=py3-zope-exceptions
_pyname=zope.exceptions
pkgver=5.2
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="
55174507bfc24a2eb78d32feeaf9775f78e085fedda74ef3b3a10a782daefa2539769a18bc6304d489fe77b3b22a4636a3233641cbd64f2007940ecedeabc8d6  zope.exceptions-5.2.tar.gz
"
