Date: Wednesday, January 6, 2021 @ 18:23:37
Author: felixonmars
Revision: 811314
archrelease: copy trunk to community-any
Added:
python-aiogram/repos/community-any/
python-aiogram/repos/community-any/PKGBUILD
(from rev 811313, python-aiogram/trunk/PKGBUILD)
----------+
PKGBUILD | 48 ++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 48 insertions(+)
Copied: python-aiogram/repos/community-any/PKGBUILD (from rev 811313,
python-aiogram/trunk/PKGBUILD)
===================================================================
--- community-any/PKGBUILD (rev 0)
+++ community-any/PKGBUILD 2021-01-06 18:23:37 UTC (rev 811314)
@@ -0,0 +1,48 @@
+# Maintainer: Felix Yan <[email protected]>
+# Contributor: Evgeniy Filimonov <[email protected]>
+
+pkgname=python-aiogram
+pkgver=2.11.2
+pkgrel=3
+pkgdesc="A pretty simple and fully asynchronous library for Telegram Bot API
written with asyncio and aiohttp"
+arch=('any')
+url="https://github.com/aiogram/aiogram"
+license=('MIT')
+depends=('python-aiohttp' 'python-babel')
+makedepends=('python-setuptools')
+checkdepends=('python-aiohttp-socks' 'python-aioredis' 'python-aresponses'
'python-pytest' 'pifpaf' 'redis')
+optdepends=('python-uvloop: fast, drop-in replacement of the built-in asyncio
event loop'
+ 'python-ujson: ultra fast JSON encoder and decoder written in pure
C'
+ 'python-rapidjson: extremely fast C++ JSON parser and
serialization library'
+ 'python-emoji: emojize and demojize support'
+ 'python-aioredis: Redis storage support'
+ 'python-aiohttp-socks: SOCKS4(a) and SOCKS5 proxy support'
+# 'python-rethinkdb: RethinkDB storage support' # No such package
yet
+)
+source=("$url/archive/v$pkgver/$pkgname-$pkgver.tar.gz")
+sha256sums=('8a56570704a278534c9158c832a307b82215df1608c076d7a4842a7fc77e75d6')
+
+prepare() {
+ cd aiogram-$pkgver
+ sed -e '/import certifi/d' \
+ -e 's|certifi.where()|"/etc/ssl/certs/ca-certificates.crt"|' \
+ -i aiogram/bot/base.py
+}
+
+build() {
+ cd aiogram-$pkgver
+ python setup.py build
+}
+
+check() {
+ cd aiogram-$pkgver
+ pifpaf run redis -- bash -c 'python -m pytest --redis $PIFPAF_REDIS_URL'
+}
+
+package() {
+ cd aiogram-$pkgver
+ python setup.py install --root="$pkgdir" --optimize=1 --skip-build
+
+ install -Dm644 LICENSE -t "$pkgdir"/usr/share/licenses/$pkgname/
+ install -Dm644 README.md -t "$pkgdir"/usr/share/doc/$pkgname/
+}