# Contributor: Bart Ribbers # Maintainer: pkgname=py3-lazy pkgver=1.5.1 pkgrel=2 pkgdesc="Lazy attributes for Python objects" url="https://github.com/stefanholek/lazy" arch="noarch" license="BSD-2-Clause" makedepends=" py3-gpep517 py3-setuptools py3-wheel " checkdepends="py3-pytest" subpackages="$pkgname-pyc" source="$pkgname-$pkgver.tar.gz::https://github.com/stefanholek/lazy/archive/refs/tags/$pkgver.tar.gz" builddir="$srcdir/lazy-$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=" 42dc44ea3640d63aa853f113ba3bc4bdda7c2fe25c013cf90b2b0225cf9f6bbdcccebc08c2cf64c00dc17ce359a1027e06695b839ee5a3f1996ba33b862408cb py3-lazy-1.5.1.tar.gz "