aports/testing/py3-bandwidth-sdk/APKBUILD

35 lines
1,001 B
Text

# Maintainer:
pkgname=py3-bandwidth-sdk
pkgver=3.1.0
pkgrel=8
pkgdesc="python helpers for using bandwidth.com API"
url="https://pypi.org/project/bandwidth-sdk/"
arch="noarch"
license="MIT"
depends="py3-requests py3-dateutil py3-lxml py3-six"
makedepends="py3-setuptools py3-gpep517"
checkdepends="py3-pytest"
subpackages="$pkgname-pyc"
source="bandwidth-sdk-$pkgver.tar.gz::https://github.com/Bandwidth/python-bandwidth/archive/v$pkgver.tar.gz"
builddir="$srcdir/python-bandwidth-$pkgver"
build() {
gpep517 build-wheel \
--wheel-dir .dist \
--output-fd 3 3>&1 >&2
}
check() {
python3 -m venv --clear --without-pip --system-site-packages .testenv
gpep517 install-wheel --destdir .testenv --prefix '' .dist/*.whl
.testenv/bin/python3 -m pytest
}
package() {
gpep517 install-wheel --destdir "$pkgdir" \
.dist/*.whl
}
sha512sums="
31c09c709b4f61741f9eabf5a4ec56d3577996b5b3933c51264442cac1bbf95da5f3e5d9e98b914eb06d8897e273ea0863406fb6bf9c65af0ac1cd71f2f06ac1 bandwidth-sdk-3.1.0.tar.gz
"