1
0
Fork 0
mirror of https://gitlab.alpinelinux.org/alpine/aports.git synced 2025-07-23 03:05:48 +03:00
aports/community/py3-validate-pyproject/APKBUILD

45 lines
1.2 KiB
Text

# Maintainer: psykose <alice@ayaya.dev>
pkgname=py3-validate-pyproject
pkgver=0.12.1
pkgrel=0
pkgdesc="Validation library for simple check on pyproject.toml"
url="https://validate-pyproject.readthedocs.io"
arch="noarch"
license="MPL-2.0"
depends="
py3-fastjsonschema
python3
"
makedepends="
py3-gpep517
py3-setuptools
py3-setuptools_scm
py3-wheel
"
checkdepends="py3-pytest-xdist"
source="$pkgname-$pkgver.tar.gz::https://github.com/abravalheri/validate-pyproject/archive/refs/tags/v$pkgver.tar.gz
no-useless-check.patch
"
builddir="$srcdir/validate-pyproject-$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 -n auto
}
package() {
python3 -m installer -d "$pkgdir" \
dist/*.whl
}
sha512sums="
092c44179b82731e9aca6a97817883a745e2bd8f138762978f4b56b63a57057c5d58105b16dcb7b3dcfd539e7fdc258224c458a59984e14e21e49152bcbaa6b0 py3-validate-pyproject-0.12.1.tar.gz
2f3e5dd1457fe81eb863ac0a53d2bb1ec991e3ac874f5210c53c19b0bb22b5bdf82b98d6107e1866a8b0c787326b457fea1151a6d3a11974248597d061a359c5 no-useless-check.patch
"