mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-07-21 18:25:41 +03:00
this marginally increases install speed by not checking if it needs a rebuild. also remove --prefix=/usr as it defaults to /usr already. might break a build or two, will fix later
31 lines
881 B
Text
31 lines
881 B
Text
# Contributor: Leo <thinkabit.ukim@gmail.com>
|
|
# Maintainer:
|
|
pkgname=py3-cachecontrol
|
|
_realname=cachecontrol
|
|
pkgver=0.12.11
|
|
pkgrel=1
|
|
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"
|
|
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
|
|
"
|