# Contributor: Bart Ribbers <bribbers@disroot.org>
# Maintainer: Bart Ribbers <bribbers@disroot.org>
pkgname=py3-pprintpp
pkgver=0.4.0
pkgrel=1
pkgdesc="A drop-in replacement for pprint that's actually pretty"
url="https://github.com/wolever/pprintpp"
arch="noarch"
license="BSD-2-Clause"
makedepends="
	py3-gpep517
	py3-setuptools
	py3-wheel
	"
subpackages="$pkgname-pyc"
source="https://pypi.python.org/packages/source/p/pprintpp/pprintpp-$pkgver.tar.gz
	$pkgname-0001-remove-u.patch::https://github.com/wolever/pprintpp/commit/deec5e5efad562fc2f9084abfe249ed0c7dd65fa.patch
	"
options="!check" # No tests
builddir="$srcdir/pprintpp-$pkgver"

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

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

sha512sums="
c59d759744499ec74bbbbcf440a45b4bb5a1ed0586cd76d444da764eb3e3c02ef5e883c00c0501f1138baa84b04f5e89ce3f8c9ed7a9cbe65c93d42deb573010  pprintpp-0.4.0.tar.gz
5fc1e52ff7e64fa6dad3e19f160d948dfcef24c6afa493878395cdfbe701fce20c85a8dee46be9ef86d6a56f7c1bdc02d4c735c9186bfc10b00d8e9f0166cc85  py3-pprintpp-0001-remove-u.patch
"
