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

33 lines
908 B
Plaintext

# Contributor: Leo <thinkabit.ukim@gmail.com>
# Maintainer:
pkgname=py3-cachecontrol
_realname=cachecontrol
pkgver=0.12.11
pkgrel=2
pkgdesc="httplib2 caching for requests"
url="https://github.com/ionrock/cachecontrol"
arch="noarch"
license="Apache-2.0"
depends="python3 py3-requests py3-msgpack py3-lockfile"
makedepends="py3-setuptools"
checkdepends="py3-pytest py3-mock py3-cherrypy py3-redis py3-lockfile"
subpackages="$pkgname-pyc"
source="https://github.com/ionrock/$_realname/archive/refs/tags/v$pkgver/py3-cachecontrol-$pkgver.tar.gz"
builddir="$srcdir/$_realname-$pkgver"
build() {
python3 setup.py build
}
check() {
PYTHONPATH=build/lib pytest
}
package() {
python3 setup.py install --skip-build --root="$pkgdir"
}
sha512sums="
be1c91f58edda36192f1267a8fdfdc50685ff57da5d84f5348b608982327993333f18f5c318a20cf258b16d2bc83272ba58317e8c4c44a84d5d1f93b522dfc8b py3-cachecontrol-0.12.11.tar.gz
"