Date: Wednesday, April 5, 2023 @ 19:28:01
Author: felixonmars
Revision: 1437972
archrelease: copy trunk to community-staging-any
Added:
python-redis/repos/community-staging-any/
python-redis/repos/community-staging-any/PKGBUILD
(from rev 1437971, python-redis/trunk/PKGBUILD)
----------+
PKGBUILD | 72 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 72 insertions(+)
Copied: python-redis/repos/community-staging-any/PKGBUILD (from rev 1437971,
python-redis/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD (rev 0)
+++ community-staging-any/PKGBUILD 2023-04-05 19:28:01 UTC (rev 1437972)
@@ -0,0 +1,72 @@
+# Maintainer: George Rawlinson <[email protected]>
+# Contributor: Felix Yan <[email protected]>
+# Contributor: Karol 'Kenji Takahashi' Woźniak <kenji.sx>
+# Contributor: Pierre Gueth <[email protected]>
+
+pkgname=python-redis
+pkgver=4.4.0
+pkgrel=2
+pkgdesc='The Python interface to the Redis key-value store'
+arch=('any')
+url='https://github.com/redis/redis-py'
+license=('MIT')
+depends=(
+ 'python'
+ 'python-async-timeout'
+)
+makedepends=(
+ 'git'
+ 'python-build'
+ 'python-installer'
+ 'python-wheel'
+ 'python-setuptools'
+)
+optdepends=(
+ 'python-hiredis: faster performance via hiredis'
+ 'python-cryptography: OCSP certificate validation'
+ 'python-pyopenssl: OCSP certificate validation'
+ 'python-requests: OCSP certificate validation'
+)
+checkdepends=(
+ 'pifpaf'
+ 'redis'
+ 'python-pytest'
+ 'python-pytest-asyncio'
+ 'python-hiredis'
+ 'python-cryptography'
+ 'python-pyopenssl'
+ 'python-requests'
+)
+_commit='6fa6cfc9ada2ec1878484ba44a02fdc3c0c691d5'
+source=("$pkgname::git+$url#commit=$_commit")
+b2sums=('SKIP')
+
+pkgver() {
+ cd "$pkgname"
+
+ git describe --tags | sed 's/^v//'
+}
+
+build() {
+ cd "$pkgname"
+
+ python -m build --wheel --no-isolation
+}
+
+check() {
+ cd "$pkgname"
+
+ # tests/test_ssl.py requires SSL keys
+ pifpaf run redis -- pytest --ignore tests/test_ssl.py || echo "Tests failed"
+}
+
+package() {
+ cd "$pkgname"
+
+ python -m installer --destdir="$pkgdir" dist/*.whl
+
+ # license
+ install -vDm644 -t "$pkgdir/usr/share/licenses/$pkgname" LICENSE
+}
+
+# vim:set ts=2 sw=2 et: