[arch-commits] Commit in python-aioredis/repos (community-any community-any/PKGBUILD)
Felix Yan
felixonmars at archlinux.org
Wed Jan 6 15:56:06 UTC 2021
Date: Wednesday, January 6, 2021 @ 15:56:06
Author: felixonmars
Revision: 810978
archrelease: copy trunk to community-any
Added:
python-aioredis/repos/community-any/
python-aioredis/repos/community-any/PKGBUILD
(from rev 810977, python-aioredis/trunk/PKGBUILD)
----------+
PKGBUILD | 31 +++++++++++++++++++++++++++++++
1 file changed, 31 insertions(+)
Copied: python-aioredis/repos/community-any/PKGBUILD (from rev 810977, python-aioredis/trunk/PKGBUILD)
===================================================================
--- community-any/PKGBUILD (rev 0)
+++ community-any/PKGBUILD 2021-01-06 15:56:06 UTC (rev 810978)
@@ -0,0 +1,31 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgname=python-aioredis
+pkgver=1.3.1
+pkgrel=1
+pkgdesc="asyncio (PEP 3156) Redis client library"
+url="https://github.com/aio-libs/aioredis"
+license=('MIT')
+arch=('any')
+depends=('python-async-timeout' 'python-hiredis')
+makedepends=('python-setuptools')
+checkdepends=('python-pytest-cov' 'redis')
+source=("https://github.com/aio-libs/aioredis/archive/v$pkgver/$pkgname-$pkgver.tar.gz")
+sha512sums=('beeb4b087bb01b0efaa0ccc3601ea15674bb790a97a3a3f84b0848d13a6d2cb87af9baf4e44090cb4fc8cf0a5196912f2b632361d8628b911cbc5704f8eba63a')
+
+build() {
+ cd aioredis-$pkgver
+ python setup.py build
+}
+
+check() {
+ cd aioredis-$pkgver
+ python -m pytest || echo "Tests failed"
+}
+
+package() {
+ cd aioredis-$pkgver
+ python setup.py install --root="$pkgdir" --optimize=1
+
+ install -Dm644 LICENSE -t "$pkgdir"/usr/share/licenses/$pkgname/
+}
More information about the arch-commits
mailing list