# Maintainer: Carl Smedstad # Contributor: Michał Wojdyła < micwoj9292 at gmail dot com > pkgname=python-pyhanko-certvalidator _name=certvalidator pkgver=0.26.3 pkgrel=2 pkgdesc="Validates X.509 certificates and paths" url="https://github.com/MatthiasValvekens/certvalidator" license=(MIT) arch=(any) depends=( python python-aiohttp python-asn1crypto python-cryptography python-oscrypto python-requests python-uritools ) makedepends=( python-build python-installer python-pytest-runner python-wheel ) checkdepends=( python-freezegun python-pytest python-pytest-asyncio ) source=("$pkgname-$pkgver.tar.gz::$url/archive/refs/tags/v$pkgver.tar.gz") sha256sums=('7861efb4259126327d9590703fe4f4316647d3725c32bd49ea67f0810abded1c') _archive="$_name-$pkgver" build() { cd "$_archive" python -m build --wheel --no-isolation } check() { cd "$_archive" pytest } package() { cd "$_archive" python -m installer -d "$pkgdir" dist/*.whl install -Dm644 -t "$pkgdir/usr/share/licenses/$pkgname" LICENSE }