pkgname=python-funk
pkgver=0.5.0
pkgrel=3
pkgdesc="mocking framework influenced heavily by JMock"
arch=(any)
url="https://github.com/mwilliamson/funk"
license=(BSD-2-Clause)
makedepends+=(git 'python-build' 'python-setuptools' 'python-wheel')
depends=(python-installer python python-precisely)
source=("source::git+https://github.com/mwilliamson/funk#tag=${pkgver}")
sha256sums=('0fcafc8c49bd445d6dd80dab43f1e6ac805b3467c7a1a89908cdb46ba9a294e7')

build() {
	cd source
	python -m build --wheel --no-isolation
}

package() {
	cd source
	python -m installer --destdir="${pkgdir}" dist/*.whl
	install -Dm644 LICENSE "${pkgdir}"/usr/share/licenses/${pkgname}/LICENSE
}
