# Contributor: Haelwenn (lanodan) Monnier # Maintainer: Haelwenn (lanodan) Monnier pkgname=py3-http-ece #_pkgreal is used by apkbuild-pypi to find modules at PyPI _pkgreal=http_ece pkgver=1.2.1 pkgrel=0 pkgdesc="Encrypted Content Encoding for HTTP" url="https://pypi.org/project/http-ece" arch="noarch" license="MIT" depends="py3-cryptography" checkdepends="py3-pytest" makedepends="py3-gpep517 py3-setuptools py3-wheel" subpackages="$pkgname-pyc" source="https://files.pythonhosted.org/packages/source/${_pkgreal:0:1}/$_pkgreal/$_pkgreal-$pkgver.tar.gz" builddir="$srcdir/$_pkgreal-$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 } package() { python3 -m installer -d "$pkgdir" \ .dist/*.whl } sha512sums=" c8d65922bd7fa6a63b550c228df277f8754f8689f2b0b563da9c89c91251a7b3f80ae7ad986997ffe36bb7a5b46861d480b06dd44253bb218e0275b383653ab8 http_ece-1.2.1.tar.gz "