# Contributor: Duncan Bellamy <dunk@denkimushi.com>
# Maintainer: Duncan Bellamy <dunk@denkimushi.com>
pkgname=py3-asyncmock
pkgver=0.4.2
pkgrel=5
pkgdesc="Extension to the standard mock framework to support support async"
url="https://github.com/timsavage/asyncmock"
arch="noarch"
license="BSD-3-Clause"
# PyPi tarball has no tests
options="!check"
depends="python3 py3-mock"
makedepends="py3-gpep517 py3-setuptools py3-pytest-runner py3-wheel"
subpackages="$pkgname-pyc"
source="$pkgname-$pkgver.tar.gz::https://files.pythonhosted.org/packages/source/a/asyncmock/asyncmock-$pkgver.tar.gz"
builddir="$srcdir/asyncmock-$pkgver"

build() {
	gpep517 build-wheel \
		--wheel-dir .dist \
		--output-fd 3 3>&1 >&2
}

package() {
	python3 -m installer -d "$pkgdir" .dist/*.whl
}

sha512sums="
b421849eda8edddd9e5d12b90ed3544ae164b890deff4052d5be252d65b9ad11ee32a45250de1e103fc84d5de06bf05d76aacaa4b907b1b784ccc18135674959  py3-asyncmock-0.4.2.tar.gz
"
