aports/community/py3-validators/APKBUILD

37 lines
1.1 KiB
Plaintext

# Contributor: Leo <thinkabit.ukim@gmail.com>
# Contributor: fossdd <fossdd@pwned.life>
# Maintainer: fossdd <fossdd@pwned.life>
pkgname=py3-validators
pkgver=0.34.0
pkgrel=0
pkgdesc="Python3 Data Validation for Humans"
url="https://github.com/python-validators/validators"
arch="noarch"
license="MIT"
depends="py3-decorator py3-pycryptodome py3-eth-hash"
makedepends="py3-gpep517 py3-setuptools py3-wheel"
checkdepends="py3-isort py3-pytest py3-flake8"
subpackages="$pkgname-pyc"
source="https://github.com/python-validators/validators/archive/$pkgver/py3-validators-$pkgver.tar.gz"
builddir="$srcdir/validators-$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="
0b8e4d2c7aea96ecf7eb8235927ddce84c734086eedb06a49e7f597a835639a39946902728ec0a4332fafc22bba1a324d66e0a6e043aea66b9765ea5f378eea8 py3-validators-0.34.0.tar.gz
"