mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-04-13 04:56:35 +02:00
40 lines
1.2 KiB
Text
40 lines
1.2 KiB
Text
# Contributor: Patrycja Rosa <alpine@ptrcnull.me>
|
|
# Maintainer: Patrycja Rosa <alpine@ptrcnull.me>
|
|
pkgname=py3-hishel
|
|
pkgver=0.1.2
|
|
pkgrel=0
|
|
pkgdesc="Elegant HTTP Cache implementation for HTTPX and HTTP Core"
|
|
url="https://github.com/karpetrosyan/hishel"
|
|
arch="noarch"
|
|
license="BSD-3-Clause"
|
|
depends="py3-httpx py3-typing-extensions"
|
|
makedepends="py3-gpep517 py3-hatchling"
|
|
checkdepends="py3-pytest"
|
|
subpackages="$pkgname-pyc"
|
|
source="https://github.com/karpetrosyan/hishel/archive/$pkgver/py3-hishel-$pkgver.tar.gz
|
|
no-fancy-readme.patch
|
|
"
|
|
builddir="$srcdir/hishel-$pkgver"
|
|
options="!check" # tests require redis and unpackaged modules
|
|
|
|
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
|
|
}
|
|
|
|
package() {
|
|
python3 -m installer -d "$pkgdir" \
|
|
.dist/*.whl
|
|
}
|
|
|
|
sha512sums="
|
|
11b5eed0d5bbae099306c7274c50d677ce831f42f35b17beb09ae5f71abb947969ebb8a7dd1e983ac6a067e6ca0e59648a7c8bb52eb7b0b61dc20573c940a7c2 py3-hishel-0.1.2.tar.gz
|
|
d8f9eff131512632b17739ea74ca2dc776ac072eb1eff537ec40daa9e99a720ebf5ba61a0aefdfd405fa39d8454d12c024652eb958b3518271a295e4fa395c8e no-fancy-readme.patch
|
|
"
|