aports/community/py3-http-ece/APKBUILD
mio fe87df709c community/py3-http-ece: upgrade to 1.2.1, build with gpep517, fix running tests
https://github.com/web-push-libs/encrypted-content-encoding/releases/tag/1.2.1

Switch to gpep517 and fix check failure due to removed `setup.py test` command,
which was deprecated in setuptools 72.0.0.

```
usage: setup.py [global_opts] cmd1 [cmd1_opts] [cmd2 [cmd2_opts] ...]
   or: setup.py --help [cmd1 cmd2 ...]
   or: setup.py --help-commands
   or: setup.py cmd --help

error: invalid command 'test'
```

Ref: https://gitlab.alpinelinux.org/alpine/aports/-/issues/17110
2025-05-03 12:04:11 +00:00

38 lines
1.1 KiB
Text

# Contributor: Haelwenn (lanodan) Monnier <contact+alpine@hacktivis.me>
# Maintainer: Haelwenn (lanodan) Monnier <contact+alpine@hacktivis.me>
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
"