testing/py3-telegram: build with gpep517

This commit is contained in:
ptrcnull 2024-08-10 00:28:24 +02:00
parent 2f5f0cfd57
commit 3cea4e0a40

View File

@ -3,13 +3,13 @@
pkgname=py3-telegram
_pyname=python-telegram
pkgver=0.18.0
pkgrel=2
pkgrel=3
pkgdesc="Python client for the Telegram's tdlib"
url="https://github.com/alexander-akhmetov/python-telegram"
arch="noarch !s390x"
license="MIT"
depends="python3 telegram-tdlib py3-telegram-text"
makedepends="py3-setuptools"
makedepends="py3-setuptools py3-gpep517"
subpackages="$pkgname-pyc"
source="https://files.pythonhosted.org/packages/source/p/python-telegram/python-telegram-$pkgver.tar.gz
0002-Remove-binarys.patch
@ -18,11 +18,14 @@ builddir="$srcdir/$_pyname-$pkgver/"
options="!check"
build() {
python3 setup.py build
gpep517 build-wheel \
--wheel-dir .dist \
--output-fd 3 3>&1 >&2
}
package() {
python3 setup.py install --skip-build --root="$pkgdir"
gpep517 install-wheel --destdir "$pkgdir" \
.dist/*.whl
}
sha512sums="