# Contributor: David Demelier <markand@malikania.fr>
# Maintainer: David Demelier <markand@malikania.fr>
pkgname=mkdocs
pkgver=1.6.0
pkgrel=0
pkgdesc="Project documentation with Markdown"
url="https://www.mkdocs.org"
arch="noarch"
license="BSD-2-Clause"
depends="
	py3-click
	py3-ghp-import
	py3-jinja2
	py3-markdown
	py3-markupsafe
	py3-mergedeep
	py3-packaging
	py3-pathspec
	py3-platformdirs
	py3-pyyaml-env-tag
	py3-watchdog
	py3-yaml
	python3
	"
makedepends="py3-hatchling py3-gpep517 py3-installer py3-babel py3-setuptools"
subpackages="$pkgname-pyc"
source="$pkgname-$pkgver.tar.gz::https://github.com/mkdocs/mkdocs/archive/refs/tags/$pkgver.tar.gz"
options="!check" # No tests.

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

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

sha512sums="
330dfb7cd390b320ca9c2bfd2dc248d877b95713ec3c1d2c9d5b28be52a42276c58412bc77527a492e4b1b31608e3093dbad2a983bfe6396577ec7464e274609  mkdocs-1.6.0.tar.gz
"
