ayaports/testing/py3-imap-tools/APKBUILD

36 lines
912 B
Text

# Maintainer: Antoine Martin (ayakael) <dev@ayakael.net>
# Contributor: Antoine Martin (ayakael) <dev@ayakael.net>
pkgname=py3-imap-tools
_pyname="imap-tools"
pkgver=1.2.0
pkgrel=0
arch="noarch"
pkgdesc="Work with email and mailbox by IMAP"
url="https://pypi.python.org/project/$_pyname"
license="Apache-2.0"
makedepends="
py3-setuptools
py3-gpep517
py3-wheel
py3-installer
"
options="!check" # No testsuite
source="$pkgname-$pkgver.tar.gz::https://pypi.io/packages/source/${_pyname:0:1}/$_pyname/$_pyname-$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="
33f9b9e983b218968173505afe810e837eed3199e1e5abf108de1ddb75b99f4a821ca82f38d79e18d52f17766a553b40cf493b0c89e5fcd5681a5e891f65e889 py3-imap-tools-1.2.0.tar.gz
"