aports/community/py3-cachy/APKBUILD
2023-04-18 20:36:50 +00:00

43 lines
1.4 KiB
Plaintext

# Contributor: Duncan Bellamy <dunk@denkimushi.com>
# Contributor: Leo <thinkabit.ukim@gmail.com>
# Maintainer: Duncan Bellamy <dunk@denkimushi.com>
pkgname=py3-cachy
_realname=cachy
pkgver=0.3.0
pkgrel=8
pkgdesc="Simple yet effective caching library"
url="https://github.com/sdispater/cachy"
arch="noarch"
license="MIT"
depends="python3"
makedepends="py3-gpep517 py3-installer py3-poetry-core py3-setuptools py3-wheel"
checkdepends="py3-pytest py3-flexmock py3-fakeredis"
subpackages="$pkgname-pyc"
source="https://files.pythonhosted.org/packages/source/${_realname:0:1}/$_realname/$_realname-$pkgver.tar.gz
No-need-to-teardown-flexmock.patch"
builddir="$srcdir/$_realname-$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 \
--deselect tests/stores/test_memcached_store.py::RedisStoreTestCase
}
package() {
python3 -m installer -d "$pkgdir" \
dist/*.whl
rm -rf "$pkgdir"/usr/lib/python3*/site-packages/tests
}
sha512sums="
0b69bd45ce81fc57710b44011965b8c4a313808f7c464a409b839d9206158f91b1e39a760d08d62bb5eb15e455ba9b89683f0eb42d2bfcc2e99b0b8f267e3ead cachy-0.3.0.tar.gz
f6bfa0c013e7f2ed1b386ac5f9d5687a34ffaf7c98bddc2bae80e4c0b008b01511d8658e1244aa93484ad008b671a590c064c88005f06fcc23067b8ea4dbd176 No-need-to-teardown-flexmock.patch
"