# Contributor: David Demelier <markand@malikania.fr>
# Maintainer: David Demelier <markand@malikania.fr>
pkgname=mkdocs-material-extensions
pkgver=1.3.1
pkgrel=1
pkgdesc="Markdown extension resources for MkDocs Material"
url="https://github.com/facelessuser/mkdocs-material-extensions"
arch="noarch"
license="MIT"
depends="python3"
makedepends="py3-gpep517 py3-hatchling py3-installer"
subpackages="$pkgname-pyc"
source="https://files.pythonhosted.org/packages/source/m/mkdocs-material-extensions/mkdocs_material_extensions-$pkgver.tar.gz"
options="!check" # Recursive dependency with mkdocs-material
builddir="$srcdir/mkdocs_material_extensions-$pkgver"

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

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

sha512sums="
f25c05ee83baab5bd758c8b3f5b3f19204f28aa672ab9388b8565bfbf8db03e79a8a84f8145ef2e8b9c52c27b0843ffe847be738fd58f26fb9c87cb9e9ee6347  mkdocs_material_extensions-1.3.1.tar.gz
"
