mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-08-05 21:37:15 +02:00
36 lines
1.0 KiB
Plaintext
36 lines
1.0 KiB
Plaintext
# Contributor: Dmitry Romanenko <dmitry@romanenko.in>
|
|
# Maintainer: Dmitry Romanenko <dmitry@romanenko.in>
|
|
pkgname=py3-apipkg
|
|
pkgver=3.0.2
|
|
pkgrel=0
|
|
pkgdesc="apipkg: namespace control and lazy-import mechanism"
|
|
url="https://github.com/pytest-dev/apipkg"
|
|
arch="noarch"
|
|
license="MIT"
|
|
depends="python3"
|
|
makedepends="py3-gpep517 py3-hatch-vcs py3-setuptools py3-wheel"
|
|
checkdepends="py3-pytest"
|
|
options="!check" # https://github.com/pytest-dev/apipkg/issues/55
|
|
subpackages="$pkgname-pyc"
|
|
source="https://files.pythonhosted.org/packages/source/a/apipkg/apipkg-$pkgver.tar.gz"
|
|
builddir="$srcdir"/apipkg-$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="
|
|
82cacd3cb8074a5616c6c45bc1742e0774345e9e6f6a0e6f1786d23e2a8fe55f7330e9011de297d4decf7020aa737630db0b1063fe604daec544e754a92f7a0a apipkg-3.0.2.tar.gz
|
|
"
|