# Contributor: Andy Hawkins <andy@gently.org.uk>
# Maintainer: Andy Hawkins <andy@gently.org.uk>
pkgname=py3-braceexpand
pkgver=0.1.7
pkgrel=5
pkgdesc="Bash-style brace expansion for Python"
url="https://github.com/trendels/braceexpand"
arch="noarch"
license="MIT"
depends="
	python3
	py3-pytest
	"
makedepends="
	py3-gpep517
	py3-setuptools
	py3-wheel
	"
subpackages="$pkgname-pyc"
source="https://github.com/trendels/braceexpand/archive/v$pkgver/braceexpand-v$pkgver.tar.gz"
builddir="$srcdir/braceexpand-$pkgver"

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

check() {
	PYTHONPATH="$PWD/build/lib" pytest
}

package() {
	python3 -m installer -d "$pkgdir" \
		.dist/braceexpand-$pkgver*-py3-none-any.whl
}
sha512sums="
b3753d5c47e30398fe14114c452e7a0c02754dae64cb9e7b7061e3b2fcc46f579f6a40e3bb091c4ec8ea729d9487b2d5d794d6d02c63489f815c81ce502d2f0f  braceexpand-v0.1.7.tar.gz
"
