mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-04-12 16:06:42 +02:00
39 lines
1.2 KiB
Text
39 lines
1.2 KiB
Text
# Contributor: Marian Buschsieweke <marian.buschsieweke@posteo.net>
|
|
# Maintainer: Marian Buschsieweke <marian.buschsieweke@posteo.net>
|
|
pkgname=py3-mistletoe
|
|
_pkgname="${pkgname#py3-}"
|
|
pkgver=1.4.0
|
|
pkgrel=0
|
|
pkgdesc="markdown parser in pure Python, designed to be fast, spec-compliant and fully customizable"
|
|
url="https://github.com/miyuchina/mistletoe"
|
|
arch="noarch"
|
|
license="MIT"
|
|
depends="py3-pygments"
|
|
makedepends="py3-setuptools py3-gpep517"
|
|
checkdepends="py3-pytest py3-requests py3-yaml py3-parameterized"
|
|
subpackages="$pkgname-pyc"
|
|
source="$pkgname-$pkgver.tar.gz::https://github.com/miyuchina/mistletoe/archive/refs/tags/v$pkgver.tar.gz"
|
|
builddir="$srcdir/$_pkgname-$pkgver"
|
|
|
|
build() {
|
|
gpep517 build-wheel \
|
|
--wheel-dir .dist \
|
|
--output-fd 3 3>&1 >&2
|
|
}
|
|
|
|
check() {
|
|
python3 -m venv --clear --without-pip --system-site-packages .testenv
|
|
gpep517 install-wheel --destdir .testenv --prefix '' .dist/*.whl
|
|
.testenv/bin/python3 -m pytest
|
|
}
|
|
|
|
package() {
|
|
gpep517 install-wheel --destdir "$pkgdir" \
|
|
.dist/*.whl
|
|
|
|
install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
|
|
}
|
|
|
|
sha512sums="
|
|
6896be4a6eb377699e97d16d1224165a14dc238047490125d29cbcced6121afd7df70497434f6bea0aa4e2e2a086c31176ecc79d38943f18d0b72f36894c7eec py3-mistletoe-1.4.0.tar.gz
|
|
"
|