# Contributor: Jonas <spameier+alpine@proton.me>
# Maintainer: Jonas <spameier+alpine@proton.me>
pkgname=py3-minidump
_pyname=minidump
pkgver=0.0.24
pkgrel=1
pkgdesc="Python library to parse and read Microsoft minidump file format"
url="https://github.com/skelsec/minidump"
arch="noarch"
license="MIT"
depends="python3"
makedepends="
	py3-gpep517
	py3-wheel
	py3-setuptools
	"
subpackages="$pkgname-pyc"
source="$pkgname-$pkgver.tar.gz::https://github.com/skelsec/minidump/archive/refs/tags/$pkgver.tar.gz"
builddir="$srcdir/$_pyname-$pkgver"
options="!check" # no tests provided

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

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

sha512sums="
9a7652a0430b26eabdebfaf8278414c266f226634d1c268beccbf06d3961fdf4450e8acb025340353c9d4737c7bea9fd2a3afb0e1d9bf317be807d9685b9c2f9  py3-minidump-0.0.24.tar.gz
"
