mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-08-05 13:27:09 +02:00
37 lines
1.1 KiB
Plaintext
37 lines
1.1 KiB
Plaintext
# Contributor: Patrycja Rosa <alpine@ptrcnull.me>
|
|
# Maintainer: Patrycja Rosa <alpine@ptrcnull.me>
|
|
pkgname=py3-pyproject-hooks
|
|
pkgver=1.1.0
|
|
pkgrel=0
|
|
pkgdesc="Low-level library for calling build-backends in 'pyproject.toml'-based project"
|
|
url="https://pyproject-hooks.readthedocs.io/"
|
|
arch="noarch"
|
|
license="MIT"
|
|
depends="python3"
|
|
makedepends="py3-gpep517 py3-installer py3-flit-core"
|
|
checkdepends="py3-pytest py3-setuptools py3-testpath"
|
|
subpackages="$pkgname-pyc"
|
|
source="https://github.com/pypa/pyproject-hooks/archive/refs/tags/v$pkgver/py3-pyproject-hooks-$pkgver.tar.gz"
|
|
builddir="$srcdir/pyproject-hooks-$pkgver"
|
|
|
|
build() {
|
|
gpep517 build-wheel \
|
|
--wheel-dir .dist \
|
|
--output-fd 3 3>&1 >&2
|
|
}
|
|
|
|
check() {
|
|
python3 -m venv --clear --without-pip --system-site-packages test-env
|
|
test-env/bin/python3 -m installer .dist/pyproject_hooks*.whl
|
|
test-env/bin/python3 -m pytest
|
|
}
|
|
|
|
package() {
|
|
python3 -m installer -d "$pkgdir" \
|
|
.dist/pyproject_hooks*.whl
|
|
}
|
|
|
|
sha512sums="
|
|
256028d13adbe35126a63431a2a49e0c48adddce5ffc3ff2eebad368eee7ce52591ecfd8a8526876de20bc59dfc87156533d6a97b55538a739873e60f9509eff py3-pyproject-hooks-1.1.0.tar.gz
|
|
"
|