mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2026-05-06 04:46:42 +02:00
47 lines
1.2 KiB
Plaintext
47 lines
1.2 KiB
Plaintext
# Contributor: Antoine Martin (ayakael) <dev@ayakael.net>
|
|
# Maintainer: Antoine Martin (ayakael) <dev@ayakael.net>
|
|
pkgname=py3-pytelegrambotapi
|
|
pkgver=4.32.0
|
|
# sometimes upstream forgets to tag pypi releases
|
|
_gittag=$pkgver
|
|
pkgrel=0
|
|
arch="noarch"
|
|
pkgdesc="A simple, but extensible Python implementation for the Telegram Bot API."
|
|
url="https://pypi.org/project/pyTelegramBotAPI/"
|
|
license="GPL-2.0-only"
|
|
depends="py3-requests"
|
|
makedepends="
|
|
py3-setuptools
|
|
py3-gpep517
|
|
py3-wheel
|
|
py3-hatchling
|
|
"
|
|
checkdepends="
|
|
py3-aiohttp
|
|
py3-pytest
|
|
"
|
|
source="$pkgname-$_gittag.tar.gz::https://github.com/eternnoir/pyTelegramBotAPI/archive/$_gittag.tar.gz"
|
|
builddir="$srcdir"/pyTelegramBotAPI-$_gittag
|
|
subpackages="$pkgname-pyc"
|
|
|
|
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 "$builddir"/.dist/*.whl
|
|
.testenv/bin/python3 -m pytest -v
|
|
}
|
|
|
|
package() {
|
|
python3 -m installer -d "$pkgdir" \
|
|
.dist/*.whl
|
|
}
|
|
|
|
sha512sums="
|
|
5eb276be1d332775d015910070c70afb85f1eaccc389fd8b1eac8d9bc874e2c6edae7c8fca15e8ffee5516d326ef5f24bc462cd84f6953519de8aae72634e533 py3-pytelegrambotapi-4.32.0.tar.gz
|
|
"
|