38 lines
1 KiB
Text
38 lines
1 KiB
Text
# Maintainer: Eivind Uggedal <eu@eju.no>
|
|
pkgname=py3-redis
|
|
_pkgname=redis
|
|
pkgver=4.4.0
|
|
pkgrel=0
|
|
pkgdesc="Python3 client for Redis key-value store"
|
|
url="https://github.com/andymccurdy/redis-py"
|
|
arch="noarch"
|
|
license="MIT"
|
|
depends="python3 py3-deprecated py3-hiredis"
|
|
makedepends="py3-setuptools"
|
|
checkdepends="py3-pytest py3-mock redis py3-pytest-asyncio"
|
|
source="https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz"
|
|
builddir="$srcdir"/$_pkgname-$pkgver
|
|
options="!check"
|
|
|
|
replaces="py-redis" # Backwards compatibility
|
|
provides="py-redis=$pkgver-r$pkgrel" # Backwards compatibility
|
|
|
|
build() {
|
|
python3 setup.py build
|
|
}
|
|
|
|
check() (
|
|
redis-server --dir "$builddir" &
|
|
trap "kill $!" EXIT
|
|
rm tests/test_asyncio/test_cluster.py
|
|
rm tests/test_ssl.py
|
|
pytest
|
|
)
|
|
|
|
package() {
|
|
python3 setup.py install --prefix=/usr --root="$pkgdir"
|
|
}
|
|
|
|
sha512sums="
|
|
935f14960f55705a97b4530d8555486947a9dae21de403762ac6fd52e78d0a06f8f024a9d62a576e5831e3b0bac317a3d1d7693e871adbee41403aa1b44f48b4 redis-4.4.0.tar.gz
|
|
"
|