aports/community/py3-twilio/APKBUILD
2024-08-27 12:57:44 +00:00

60 lines
1.3 KiB
Plaintext

# Contributor: Antoine Martin (ayakael) <dev@ayakael.net>
# Maintainer: Antoine Martin (ayakael) <dev@ayakael.net>
pkgname=py3-twilio
pkgver=9.2.4
pkgrel=0
arch="noarch"
pkgdesc="Twilio API client and TwiML generator"
url="https://pypi.python.org/project/twilio"
license="MIT"
depends="
py3-requests
py3-jwt
py3-aiohttp
py3-aiohttp-retry
"
makedepends="
py3-gpep517
py3-setuptools
py3-wheel
"
# missing py3-pyngrok, py3-autoflake, py3-recommonmark
checkdepends="
black
py3-sphinx
py3-mock
py3-pytest
py3-pytest-cov
py3-aiounittest
py3-flake8
py3-cryptography
py3-django
py3-multidict
"
subpackages="$pkgname-pyc"
_pyname=twilio-python
source="$pkgname-$pkgver.tar.gz::https://github.com/twilio/twilio-python/archive/refs/tags/$pkgver.tar.gz"
builddir="$srcdir"/$_pyname-$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
.testenv/bin/python3 -m installer .dist/*.whl
# tests/cluster require Twilio API access
.testenv/bin/python3 -m pytest -v --ignore=tests/cluster
}
package() {
python3 -m installer -d "$pkgdir" \
.dist/*.whl
}
sha512sums="
3bd56215b7d23606fc233342aec407bab2fc2670e528ae922b69ca7721e97479634839f38863ed5ffd90b0217d65f339631c71c1f75e6c26bba2c51c0913eeda py3-twilio-9.2.4.tar.gz
"