# Contributor: Celeste # Maintainer: Celeste pkgname=py3-pymemcache pkgver=4.0.0 pkgrel=1 pkgdesc="Comprehensive, fast, pure-Python memcached client" url="https://pymemcache.readthedocs.io/" arch="noarch" license="Apache-2.0" makedepends=" py3-gpep517 py3-setuptools py3-wheel " checkdepends=" py3-faker py3-gevent py3-pytest-cov py3-pytest-forked py3-pytest-xdist py3-zstd " subpackages="$pkgname-pyc" source="https://github.com/pinterest/pymemcache/archive/v$pkgver/py3-pymemcache-$pkgver.tar.gz fix-test-failure-on-32bit.patch " builddir="$srcdir/pymemcache-$pkgver" build() { gpep517 build-wheel \ --wheel-dir .dist \ --output-fd 3 3>&1 >&2 } check() { python3 -m venv --clear --without-pip --system-site-packages .testenv .testenv/bin/python3 -m installer .dist/*.whl .testenv/bin/python3 -m pytest -n auto --forked } package() { python3 -m installer -d "$pkgdir" \ .dist/*.whl rm -r "$pkgdir"/usr/lib/python*/site-packages/pymemcache/test/ } sha512sums=" bd3165f70ef73bab8fd93834e01a892f39d66557996e4ccdf088faecddd74eccb953371a0db210a34896517f4a136afa2f4ec3f70d8dadc6592d304d0da3d7f5 py3-pymemcache-4.0.0.tar.gz aeb6698b1f75efd638d304084e4d4ca805be92c9c1e5d12c038ae77accb55d37c0cdb7df866f7d4f57514f9877f27de0910d3df85a0e4efdea17c3dc961c4635 fix-test-failure-on-32bit.patch "