blob: 67b6b2b3ad17cd6a184ccf1a7dfd11a626556ad0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
|
# Maintainer: Carlos Aznarán <caznaranl@uni.pe>
# Contributor: Antonio Rojas <arojas@archlinux.org>
# Contributor: Sherlock Holo <sherlockya@gmail.com>
# Contributor: Sean Enck <enckse@gmail.com>
# Contributor: NeoTheFox <soniczerops@gmail.com>
pkgname=python-telegram-bot
pkgver=22.2
pkgrel=1
pkgdesc="A library that provides a Python interface to the Telegram Bot API"
url="https://github.com/${pkgname}/${pkgname}"
license=(LGPL-3.0-only)
arch=(any)
depends=(python-httpx)
makedepends=(python-build python-installer python-hatchling python-wheel)
# checkdepends=(python-pytest-asyncio python-pytest-timeout python-flaky python-beautifulsoup4)
optdepends=('python-cachetools: for use a variant of LRUCache'
'python-h2: for HTTP/2 support'
'python-apscheduler: for job queue support'
'python-pytz: for job queue support'
'python-cryptography: for support cryptography library'
'python-aiolimiter: for rate limiter'
'python-socksio: for SOCKS proxy support'
'python-tornado: for webhooks support')
source=(${url}/releases/download/v${pkgver}/${pkgname//-/_}-${pkgver}.tar.gz)
sha512sums=('2c396d651e8cb30093d330dfb15c791d7ac0b0325ce34abd4176b41f7ae18fd2086d1c502d8e32a0da20ae60954b158a1d234ff4dbf623196a05890448c887f2')
build() {
cd ${pkgname//-/_}-${pkgver}
python -m build --wheel --skip-dependency-check --no-isolation
}
package() {
cd ${pkgname//-/_}-${pkgver}
PYTHONPYCACHEPREFIX="${PWD}/.cache/cpython/" python -m installer --destdir="${pkgdir}" dist/*.whl
install -Dm 644 LICENSE* -t "${pkgdir}/usr/share/licenses/${pkgname}"
}
|