# Maintainer: Andy Postnikov <apostnikov@gmail.com>
pkgname=py3-wcmatch
_pkgname=wcmatch
pkgver=9.0
pkgrel=0
pkgdesc="Wildcard file name matching library"
url="https://facelessuser.github.io/wcmatch/"
arch="noarch"
license="MIT"
depends="py3-bracex"
makedepends="py3-hatchling py3-gpep517 py3-installer"
checkdepends="py3-pytest"
subpackages="$pkgname-pyc"
source="https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz"
builddir="$srcdir"/$_pkgname-$pkgver

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

check() {
	pytest -v
}

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

sha512sums="
d0ce114e95b99d297039ebee1a3d49cc93fec0ceaeb241d92ebc4186dc12195ac227f158730ae8f73ee7adaab804da63c107b49e1fd1a3762bb6902603ad873a  wcmatch-9.0.tar.gz
"
