mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-06-06 18:04:54 +02:00
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
38 lines
1.1 KiB
Text
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
|
|
"
|