# Contributor: Paul Kilar # Maintainer: Paul Kilar pkgname=py3-bottle _pkgname=bottle pkgver=0.12.24 pkgrel=1 pkgdesc="fast, simple and lightweight WSGI micro web-framework" options="!check" # failures=1 url="https://bottlepy.org/docs/dev" arch="noarch" license="MIT" depends="python3" makedepends=" py3-gpep517 py3-setuptools py3-wheel " source="https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz" builddir="$srcdir/$_pkgname-$pkgver" # secfixes: # 0.12.21-r0: # - CVE-2022-31799 replaces="py-bottle" # Backwards compatibility provides="py-bottle=$pkgver-r$pkgrel" # Backwards compatibility 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 unittest discover test } package() { python3 -m installer -d "$pkgdir" \ dist/*.whl } sha512sums=" a3bc4bdc1376aef6c7b5784de18bfaac83e2c0c279fb2c3c3a8322871c68516e858b8c82cfff9291d41a66b906c13099c9d1037184bc48ff6f4ef0783b048f9b bottle-0.12.24.tar.gz "