blob: ac31d3de75b0664483e0eb50b0db93614b29fb2b (
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
|
# Maintainer: gryffyn <aur@evan.mp>
# Contributor: Helio Loureiro <helio@loureiro.eng.br>
pkgname=python-pytelegrambotapi
_pkgname=pyTelegramBotAPI
pkgver=4.24.0
pkgrel=1
pkgdesc="Python Telegram bot api"
arch=('any')
url="https://github.com/eternnoir/pyTelegramBotAPI"
license=("GPLv2")
depends=('python' 'python-requests' 'python-pytest' 'python-wheel' 'python-aiohttp' 'python-pip' 'python-build' 'sed' 'coreutils')
source=("https://github.com/eternnoir/${_pkgname}/archive/refs/tags/${pkgver}.tar.gz")
sha256sums=('560d57c61c871c9f7ce0f138237ca32b45035ad010b08eaa159f7c8f49218735')
package() {
cd ${srcdir}/${_pkgname}-${pkgver}/
py_pkg_path=$(python -c 'import sys; [print(p) for p in sys.path]' | sed -n '/^\/usr.*site-packages/p' | head -1)
python -m build
mkdir -p ${pkgdir}/${py_pkg_path}
python -m pip install --no-deps \
--target=${pkgdir}/${py_pkg_path} \
dist/pytelegrambotapi-${pkgver}-py3-none-any.whl
}
|