mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-04-11 14:26:38 +02:00
62 lines
1.3 KiB
Text
62 lines
1.3 KiB
Text
# Contributor: Philipp Glaum <p@pglaum.de>
|
|
# Maintainer:
|
|
pkgname=py3-requests-cache
|
|
pkgver=1.2.1
|
|
pkgrel=1
|
|
pkgdesc="Persistent cache for requests library"
|
|
url="https://github.com/requests-cache/requests-cache"
|
|
arch="noarch !s390x"
|
|
license="BSD-3-Clause"
|
|
depends="
|
|
py3-attrs
|
|
py3-cattrs
|
|
py3-platformdirs
|
|
py3-requests
|
|
py3-url-normalize
|
|
py3-urllib3
|
|
"
|
|
makedepends="
|
|
py3-gpep517
|
|
py3-poetry-core
|
|
py3-wheel
|
|
"
|
|
checkdepends="
|
|
py3-itsdangerous
|
|
py3-mock
|
|
py3-mongo
|
|
py3-msgpack
|
|
py3-orjson
|
|
py3-pytest
|
|
py3-pytest-xdist
|
|
py3-requests-mock
|
|
py3-responses
|
|
py3-rich
|
|
py3-time-machine
|
|
py3-timeout-decorator
|
|
py3-ujson
|
|
py3-yaml
|
|
"
|
|
subpackages="$pkgname-pyc"
|
|
source="$pkgname-$pkgver.tar.gz::https://github.com/requests-cache/requests-cache/archive/refs/tags/v$pkgver.tar.gz"
|
|
builddir="$srcdir/requests-cache-$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 --ignore tests/integration
|
|
}
|
|
|
|
package() {
|
|
python3 -m installer -d "$pkgdir" \
|
|
.dist/*.whl
|
|
}
|
|
|
|
sha512sums="
|
|
f8977b1afc005ddd73019d2a0e39da368f376602110602c0b24c317b548f31a3489e686502ecd48ae3583e471fdd70671913e529c73dacdcaecadb1cd1e6c126 py3-requests-cache-1.2.1.tar.gz
|
|
"
|