aports/main/py3-pluggy/APKBUILD
2024-05-01 18:16:15 +00:00

45 lines
1.2 KiB
Text

# Contributor: Stuart Cardall <developer@it-offshore.co.uk>
# Contributor: Maxim Karasev <begs@disroot.org>
# Maintainer: Stuart Cardall <developer@it-offshore.co.uk>
pkgname=py3-pluggy
_pkgname=pluggy
pkgver=1.5.0
pkgrel=0
pkgdesc="Plugin management and hook calling for Python"
# Needs py3-pytest for checkdepends, which require py3-pluggy
# in depends, so disable here to break a circular dependency
options="!check"
url="https://pluggy.readthedocs.io/en/latest/"
arch="noarch"
license="MIT"
makedepends="
py3-gpep517
py3-setuptools_scm
py3-wheel
"
checkdepends="py3-pytest"
subpackages="$pkgname-pyc"
source="https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz"
builddir="$srcdir/$_pkgname-$pkgver"
build() {
SETUPTOOLS_SCM_PRETEND_VERSION="$pkgver" \
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="
032d41e1f2bed56eff22463c4645516e9415ee253e0a3fe5ba83a8de5e21700baae1f6384c979d2c6f622e4216a2b745eec489bc04f52a576d423e771365cc7a pluggy-1.5.0.tar.gz
"