pkgname=python-mypy-protobuf
pkgver=5.1.0
pkgrel=1

pkgdesc='Generate mypy stub files from protobuf specs'
url='https://github.com/nipunn1313/mypy-protobuf'
arch=('any')
license=('Apache')

depends=('mypy' 'protobuf' 'python' 'python-protobuf')
makedepends=('python-build' 'python-installer' 'python-wheel' 'python-setuptools' git)

source=("source::git+${url}.git#tag=v${pkgver}")

sha256sums=('56ec18127c51084b0f8442dd943b18a2e3ee4d3a551820b3aa36d57c0be9fbdd')

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

package() {
	cd source
	python -m installer --destdir="$pkgdir" dist/*.whl
}
