mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-08-05 13:27:09 +02:00
47 lines
1.2 KiB
Plaintext
47 lines
1.2 KiB
Plaintext
# Maintainer: psykose <alice@ayaya.dev>
|
|
pkgname=py3-validate-pyproject
|
|
pkgver=0.12.2
|
|
pkgrel=1
|
|
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"
|
|
subpackages="$pkgname-pyc"
|
|
source="$pkgname-$pkgver-2.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="
|
|
6a19732ec5306634fccc037580936411a2092ef9fff813157a8b332af41d54d75476cf53f8053f3846e331b890afb6bb4b442e847558c51750cde35b607f05e7 py3-validate-pyproject-0.12.2-2.tar.gz
|
|
2f3e5dd1457fe81eb863ac0a53d2bb1ec991e3ac874f5210c53c19b0bb22b5bdf82b98d6107e1866a8b0c787326b457fea1151a6d3a11974248597d061a359c5 no-useless-check.patch
|
|
"
|