aports/community/py3-pastedeploy/APKBUILD
2024-04-12 11:59:22 +02:00

35 lines
1.0 KiB
Plaintext

# Contributor: Duncan Bellamy <dunk@denkimushi.com>
# Maintainer: Duncan Bellamy <dunk@denkimushi.com>
pkgname=py3-pastedeploy
pkgver=3.1.0
pkgrel=1
pkgdesc="Load, configure, and compose WSGI applications and servers"
url="https://pylonsproject.org"
arch="noarch"
license="MIT"
depends="python3 py3-gpep517 py3-installer py3-setuptools py3-wheel"
checkdepends="py3-pytest py3-pytest-cov"
subpackages="$pkgname-pyc"
source="$pkgname-$pkgver.tar.gz::https://files.pythonhosted.org/packages/source/P/PasteDeploy/PasteDeploy-$pkgver.tar.gz"
builddir="$srcdir/PasteDeploy-$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="
1af1b8f51f6b8985604b253fceec59f5c1987b51e2b0b655561cf15b802bd05696cecc5a6d1b01d0c6ee4b0dcbfbb2c0dc0b5c83d51034a55984c7aeba924e95 py3-pastedeploy-3.1.0.tar.gz
"