# Contributor: Fabian Affolter # Maintainer: Fabian Affolter pkgname=py3-waitress _pkgname=waitress pkgver=1.4.3 pkgrel=0 pkgdesc="A Python3 WSGI server" options="!check" # Test ERRORS out, fails to resolve address url="https://github.com/Pylons/waitress" arch="noarch" license="ZPL-2.1" checkdepends="py3-nose" makedepends="py3-setuptools" provides="py-waitress=$pkgname-r$pkgrel" # for backward compatibility replaces="py-waitress" # for backward compatibility subpackages="$pkgname-openrc" source="https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz waitress.initd waitress.confd" builddir="$srcdir/$_pkgname-$pkgver" # secfixes: # 1.4.1-r0: # - CVE-2019-16789 # 1.4.0-r0: # - CVE-2019-16785 # - CVE-2019-16786 build() { python3 setup.py build } check() { python3 setup.py test } package() { python3 setup.py install --prefix=/usr --root="$pkgdir" mv "$pkgdir"/usr/bin/waitress-serve "$pkgdir"/usr/bin/waitress-serve-3 rm -rf "$pkgdir"/usr/lib/python3/site-packages/$_pkgname/tests ln -s waitress-serve-3 "$pkgdir"/usr/bin/waitress-serve install -D -m 755 "$srcdir"/waitress.initd "$pkgdir"/etc/init.d/waitress install -D -m 644 "$srcdir"/waitress.confd "$pkgdir"/etc/conf.d/waitress } sha512sums="b4fd6d174fe63d83686708ffb83f61421e94cc6c6e9ebc7deeae93ea50a0c11ee523d4448e602ba03ade942912accb33d482c13a367d7dcba61ba6b4871bc3b4 waitress-1.4.3.tar.gz 5e85fdaaf564f1a581488cc8d26362775d8623f414c2a1bddcc7e3ac5bdbbb0ef48eda3f1b00d203dee3cc14b271a3324bfade7a16b9b6106dbb2da85a970d37 waitress.initd 3f3fce6347784461c39f4281c371eabeff165dcfc273f1f92a6f50db35a36dd79faef70abf638dbe3f1894f050828cb3be755172cb7b8283bcbf9b0d5b2723da waitress.confd"