[arch-commits] Commit in python-aiogram/repos/community-any (PKGBUILD PKGBUILD)
Felix Yan
felixonmars at gemini.archlinux.org
Thu Jul 22 17:43:01 UTC 2021
Date: Thursday, July 22, 2021 @ 17:43:00
Author: felixonmars
Revision: 983218
archrelease: copy trunk to community-any
Added:
python-aiogram/repos/community-any/PKGBUILD
(from rev 983216, python-aiogram/trunk/PKGBUILD)
Deleted:
python-aiogram/repos/community-any/PKGBUILD
----------+
PKGBUILD | 105 +++++++++++++++++++++++++++++--------------------------------
1 file changed, 50 insertions(+), 55 deletions(-)
Deleted: PKGBUILD
===================================================================
--- PKGBUILD 2021-07-22 17:42:56 UTC (rev 983217)
+++ PKGBUILD 2021-07-22 17:43:00 UTC (rev 983218)
@@ -1,55 +0,0 @@
-# Maintainer: Felix Yan <felixonmars at archlinux.org>
-# Contributor: Evgeniy Filimonov <evgfilim1 at gmail.com>
-
-pkgname=python-aiogram
-pkgver=2.14.2
-pkgrel=1
-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'
- 'python-pytest-lazy-fixture' '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"
- https://github.com/aiogram/aiogram/commit/2b4e3ad5c661956a8d7edaae72164f6b189e2fec.patch
- https://github.com/aiogram/aiogram/commit/a26c6428a3a1c06665f0fa5e9a8853b4ad8add30.patch)
-sha512sums=('145df3f8346f848cd38ef410f6ee3603a3fb03185d2b9dd59f7d53b57a314c01f87e5f3ef88f43339ac0a78b9fd32b437e73709cdf9e4d9426f31d2f4551260d'
- '7139d0fab37802f1256cc27f5a7781f07d2263712c852b7f7bd4986f0c7ac0513823dd0de1ab73e235a4e0f61271ec5f70285952779b49acb4fb2c9eab1576c6'
- '9faa6de7029c74a7c8c78f2db52ac9dcfcbee52e30e3f48db041718a3dc08460d3392525cdcf763ad0cb739c703f39ed9c82677c47e10df61607bbd5a14191c2')
-
-prepare() {
- cd aiogram-$pkgver
- patch -p1 -i ../2b4e3ad5c661956a8d7edaae72164f6b189e2fec.patch
- patch -p1 -i ../a26c6428a3a1c06665f0fa5e9a8853b4ad8add30.patch
- 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/
-}
Copied: python-aiogram/repos/community-any/PKGBUILD (from rev 983216, python-aiogram/trunk/PKGBUILD)
===================================================================
--- PKGBUILD (rev 0)
+++ PKGBUILD 2021-07-22 17:43:00 UTC (rev 983218)
@@ -0,0 +1,50 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Contributor: Evgeniy Filimonov <evgfilim1 at gmail.com>
+
+pkgname=python-aiogram
+pkgver=2.14.3
+pkgrel=1
+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'
+ 'python-pytest-lazy-fixture' '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")
+sha512sums=('32003f5f69c41d66cf886c7bd9d5f37f5f99f4ca6d79c983bd5b69c80cd39d73ea3a38b433f8309096e6af70a4b5e1421dd9d5ff2b9e5f0401d8113b70edd49e')
+
+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
+ # https://github.com/aiogram/aiogram/issues/639
+ pifpaf run redis -- bash -c 'python -m pytest --redis $PIFPAF_REDIS_URL --deselect tests/types/test_reply_keyboard.py::test_deserialize'
+}
+
+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/
+}
More information about the arch-commits
mailing list