# Contributor: Antoine Martin (ayakael) <dev@ayakael.net>
# Maintainer: Antoine Martin (ayakael) <dev@ayakael.net>
pkgname=py3-imap-tools
_pyname="imap-tools"
pkgver=1.7.2
pkgrel=0
arch="noarch"
pkgdesc="Work with email and mailbox by IMAP"
url="https://pypi.python.org/project/imap-tools"
license="Apache-2.0"
makedepends="
	py3-setuptools
	py3-gpep517
	py3-wheel
	"
options="!check" # No testsuite
source="$pkgname-$pkgver.tar.gz::https://pypi.io/packages/source/i/imap-tools/imap-tools-$pkgver.tar.gz"
builddir="$srcdir"/$_pyname-$pkgver
subpackages="$pkgname-pyc"

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

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

sha512sums="
ed4626faa434af960cf0f5b2ed62260e94c8a656c5767df857297c80fbff30e2a57efd3027683cc278e01a50be311ab803096aa7ef5808348afdef826729391c  py3-imap-tools-1.7.2.tar.gz
"
