aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBart Ribbers <bribbers@disroot.org>2021-04-29 09:36:55 +0200
committerBart Ribbers <bribbers@disroot.org>2021-04-29 09:39:40 +0200
commit0fb0078880d6112ea7987fbfeb7426738ebcbc97 (patch)
tree6fb985a2bb8fe792f2e5cb4e98644b91c1563912
parent622fe04e365370c6e742f73b1fbdc3e19f532443 (diff)
downloadaports-0fb0078880d6112ea7987fbfeb7426738ebcbc97.tar.gz
aports-0fb0078880d6112ea7987fbfeb7426738ebcbc97.tar.bz2
aports-0fb0078880d6112ea7987fbfeb7426738ebcbc97.tar.xz
community/py3-requests-cache: upgrade to 0.6.3
-rw-r--r--community/py3-requests-cache/APKBUILD29
1 files changed, 19 insertions, 10 deletions
diff --git a/community/py3-requests-cache/APKBUILD b/community/py3-requests-cache/APKBUILD
index c3f22828ef..51d40eedfc 100644
--- a/community/py3-requests-cache/APKBUILD
+++ b/community/py3-requests-cache/APKBUILD
@@ -1,19 +1,27 @@
# Contributor: Philipp Glaum <p@pglaum.de>
# Maintainer: Bart Ribbers <bribbers@disroot.org>
pkgname=py3-requests-cache
-_pkgname=requests-cache
-pkgver=0.5.2
-pkgrel=2
+pkgver=0.6.3
+pkgrel=0
pkgdesc="Persistent cache for requests library"
url="https://pypi.org/project/requests-cache/"
arch="noarch"
license="BSD-3-Clause"
-depends="python3 py3-requests"
+depends="
+ py3-requests
+ py3-url-normalize
+ python3
+ "
makedepends="py3-setuptools"
-checkdepends="py3-mock"
-source="https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz"
-options="net" # Required for tests
-builddir="$srcdir/$_pkgname-$pkgver"
+checkdepends="
+ py3-itsdangerous
+ py3-mock
+ py3-pytest
+ py3-requests-mock
+ py3-timeout-decorator
+ "
+source="https://pypi.python.org/packages/source/r/requests-cache/requests-cache-$pkgver.tar.gz"
+builddir="$srcdir/requests-cache-$pkgver"
prepare() {
default_prepare
@@ -26,11 +34,12 @@ build() {
}
check() {
- python3 setup.py test
+ # integration tests skipped as they require running databases
+ pytest --ignore tests/integration
}
package() {
python3 setup.py install --prefix=/usr --root="$pkgdir"
}
-sha512sums="355cc571a46b768615606a907a69ed065b3c4b5e74bb6c311abc7a28d9406f32fdea1db0dfd2b1c32dcdc82ed817ef7e0b30086c069de57307254617604c5177 requests-cache-0.5.2.tar.gz"
+sha512sums="d2ebba52b21d4c733f3fba8fbdb9b839197bb2aacfa0b272d41dd06f8be7766c8eedcc19c12d30e901eebdd595beaa02a6c2d303b54e23069a3635f77217c2df requests-cache-0.6.3.tar.gz"