# Contributor: Michał Polański # Maintainer: Michał Polański pkgname=py3-flexmock pkgver=0.12.2 pkgrel=0 pkgdesc="Testing library for creating mocks, stubs and fakes" url="https://github.com/flexmock/flexmock" license="BSD-2-Clause" arch="noarch" makedepends="py3-poetry-core py3-gpep517" checkdepends="py3-pytest" subpackages="$pkgname-pyc" source="https://github.com/flexmock/flexmock/archive/v$pkgver/py3-flexmock-$pkgver.tar.gz" builddir="$srcdir/flexmock-$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 gpep517 install-wheel --destdir .testenv --prefix '' .dist/*.whl .testenv/bin/python3 -m pytest } package() { gpep517 install-wheel --destdir "$pkgdir" \ .dist/*.whl } sha512sums=" f9f2955811d7aceae53e7eaa45b2f9bc1545c473ab8f7227d45983a4bddc45f4e40ee1df16d0b93aacb11d3abbeeb81b572a98a01cadfe1e1ff3bd087f1935d9 py3-flexmock-0.12.2.tar.gz "