# Contributor: Patrycja Rosa <alpine@ptrcnull.me>
# Maintainer: Patrycja Rosa <alpine@ptrcnull.me>
pkgname=py3-mdurl
pkgver=0.1.2
pkgrel=3
pkgdesc="URL utilities for markdown-it (a Python port)"
url="https://github.com/executablebooks/mdurl"
arch="noarch"
license="MIT"
depends="python3"
makedepends="py3-gpep517 py3-flit-core"
checkdepends="py3-pytest"
subpackages="$pkgname-pyc"
source="https://github.com/executablebooks/mdurl/archive/$pkgver/py3-mdurl-$pkgver.tar.gz"
builddir="$srcdir/mdurl-$pkgver"

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

check() {
	PYTHONPATH=src pytest
}

package() {
	python3 -m installer -d "$pkgdir" .dist/mdurl-$pkgver-py3-none-any.whl
}

sha512sums="
e301ca3ab6d80df1ad28b9c2725d66b6e6cf139d93e5f7fd2a70333678616a3f6db64f15250972eee3cd1cf1eaff6ec587415629e6802dcf07995edff6865ff2  py3-mdurl-0.1.2.tar.gz
"
