# Maintainer: prspkt pkgname=py3-werkzeug _pkgname=Werkzeug pkgver=2.3.6 pkgrel=0 pkgdesc="The WSGI swiss-army knife" url="https://werkzeug.palletsprojects.com/" arch="noarch" license="MIT" depends="python3 py3-markupsafe" makedepends="py3-gpep517 py3-setuptools py3-wheel" checkdepends="py3-pytest py3-requests py3-pytest-timeout" subpackages="$pkgname-pyc" source="https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz" builddir="$srcdir/$_pkgname-$pkgver" replaces="py-werkzeug" # Backwards compatibility provides="py-werkzeug=$pkgver-r$pkgrel" # Backwards compatibility # secfixes: # 2.2.2-r0: # - CVE-2022-29361 prepare() { default_prepare # requires ephemeral-port-preserve rm -fv tests/conftest.py rm -fv tests/test_debug.py # requires various pytest plugins rm -fv tests/test_serving.py rm -fv tests//middleware/test_http_proxy.py } 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=" 6fc2830c51cbaa88e640b47677273e0ca8c7aca0752d8f90cb2564e5cd513dd17d0ba60f9458e7a0c034735cfd626c985ffeed89776c08ce137e89efc6239910 Werkzeug-2.3.6.tar.gz "