testing/py3-tls_parser: build with gpep517, disable check

This commit is contained in:
ptrcnull 2024-08-02 23:51:28 +02:00
parent 9ddeaf4810
commit 71b9324bae

View File

@ -9,24 +9,24 @@ url="https://pypi.org/project/tls-parser/"
arch="noarch"
license="MIT"
depends="python3"
makedepends="py3-setuptools"
makedepends="py3-setuptools py3-gpep517"
subpackages="$pkgname-pyc"
source="https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz"
builddir="$srcdir/$_pkgname-$pkgver"
options="!check" # no tests provided
replaces=py-tls_parser # Backwards compatibility
provides=py-tls_parser=$pkgver-r$pkgrel # Backwards compatibility
build() {
python3 setup.py build
}
check() {
python3 setup.py check
gpep517 build-wheel \
--wheel-dir .dist \
--output-fd 3 3>&1 >&2
}
package() {
python3 setup.py install --skip-build --root="$pkgdir"
gpep517 install-wheel --destdir "$pkgdir" \
.dist/*.whl
}
sha512sums="