mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-05-12 12:14:35 +02:00
42 lines
1.1 KiB
Text
42 lines
1.1 KiB
Text
# Contributor: Fabian Affolter <fabian@affolter-engineering.ch>
|
|
# Maintainer: fossdd <fossdd@pwned.life>
|
|
pkgname=py3-markdown
|
|
pkgver=3.8
|
|
pkgrel=0
|
|
pkgdesc="Python3 implementation of Markdown"
|
|
url="https://python-markdown.github.io/"
|
|
arch="noarch"
|
|
license="BSD-3-Clause"
|
|
makedepends="
|
|
py3-gpep517
|
|
py3-setuptools
|
|
py3-wheel
|
|
"
|
|
checkdepends="py3-coverage py3-yaml"
|
|
subpackages="$pkgname-pyc"
|
|
source="$pkgname-$pkgver.tar.gz::https://github.com/Python-Markdown/markdown/archive/refs/tags/$pkgver.tar.gz"
|
|
builddir="$srcdir/markdown-$pkgver"
|
|
|
|
replaces="py-markdown" # Backwards compatibility
|
|
provides="py-markdown=$pkgver-r$pkgrel" # Backwards compatibility
|
|
|
|
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 unittest discover tests
|
|
}
|
|
|
|
package() {
|
|
python3 -m installer -d "$pkgdir" \
|
|
.dist/*.whl
|
|
}
|
|
|
|
sha512sums="
|
|
18e1a36a8c961f886687956f51f2b0342b2c3366197503c9e3baecce78139c0999a83941e9d4cb6711c688b764bcce9d53bd708e2986b84a895f633a0c5ad250 py3-markdown-3.8.tar.gz
|
|
"
|