# Contributor: Newbyte # Maintainer: Newbyte pkgname=py3-mistune pkgver=2.0.5 pkgrel=1 pkgdesc="Python Markdown parser module" url="https://github.com/lepture/mistune" arch="noarch" license="BSD-3-Clause" depends="python3" makedepends="py3-gpep517 py3-installer py3-setuptools py3-wheel" checkdepends="py3-pytest" subpackages="$pkgname-pyc" source="$pkgname-$pkgver.tar.gz::https://github.com/lepture/mistune/archive/v$pkgver.tar.gz" builddir="$srcdir/mistune-$pkgver" # secfixes: # 2.0.3-r0: # - CVE-2022-34749 build() { gpep517 build-wheel \ --wheel-dir .dist \ --output-fd 3 3>&1 >&2 } check() { python3 -m venv --clear --without-pip --system-site-packages .testenv .testenv/bin/python3 -m installer .dist/*.whl .testenv/bin/python3 -m pytest } package() { python3 -m installer -d "$pkgdir" \ .dist/*.whl } sha512sums=" ca1cb685e55550d8adc421cec1bb5359895e04bc80259eb0bdc5b554669758e92d3f10cdd4bd01a15ca9aeeca62f9c8813a14101db0281b9a93eeecbff496aa0 py3-mistune-2.0.5.tar.gz "