testing/py3-twilio: move from user

This commit is contained in:
Antoine Martin 2023-08-30 13:55:50 -04:00
parent 283f2505cf
commit ca7e37aef2
2 changed files with 46 additions and 28 deletions

View file

@ -0,0 +1,46 @@
# Maintainer: Antoine Martin (ayakael) <dev@ayakael.net>
# Contributor: Antoine Martin (ayakael) <dev@ayakael.net>
_pyname=twilio
pkgname="py3-$_pyname"
pkgver=8.5.0
pkgrel=0
arch="noarch"
pkgdesc="Twilio API client and TwiML generator"
url="https://pypi.python.org/project/$_pyname"
license="MIT"
depends="
py3-requests
py3-mock
py3-flake8
py3-six
py3-nose
py3-python-jwt
py3-twine
py3-tz
"
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="
d82d6f1d9c7e589d42416d6d045b57a9c181bcdbc51b7e7d7ecb42d79d49160227790cb202a351a36f80ddfb6998d66b63ca46e998e03fe1fefdc64b2f67f0a1 py3-twilio-8.5.0.tar.gz
"

View file

@ -1,28 +0,0 @@
# Maintainer: Antoine Martin (ayakael) <dev@ayakael.net>
# Contributor: Antoine Martin (ayakael) <dev@ayakael.net>
_pyname=twilio
pkgname="py3-$_pyname"
pkgver=7.17.0
pkgrel=0
arch="noarch"
pkgdesc="Twilio API client and TwiML generator"
url="https://pypi.python.org/project/$_pyname"
license="MIT"
depends="py3-requests py3-mock py3-flake8 py3-six py3-nose py3-python-jwt py3-twine py3-tz"
makedepends="py3-setuptools"
checkdepends="py3-pytest"
source="$pkgname-$pkgver.tar.gz::https://pypi.io/packages/source/${_pyname:0:1}/$_pyname/$_pyname-$pkgver.tar.gz"
builddir="$srcdir"/$_pyname-$pkgver
check() {
PYTHONPATH="$srcdir" pytest || true
}
package() {
python3 setup.py install --root="$pkgdir/" --optimize=1
install -Dm644 LICENSE -t "$pkgdir"/usr/share/licenses/$pkgname/
}
sha512sums="
73f286d9c8571942e8f4ce2c03e87d5ec5ba075daa189e7e60014aece7b80bcc2da3ffcaea7b0f2a1e95ed2c193d389d7f3e7be02450a5c5bbc532dd928edcb7 py3-twilio-7.17.0.tar.gz
"