mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-06-10 02:45:01 +02:00
36 lines
1.1 KiB
Text
36 lines
1.1 KiB
Text
# Contributor: Galen Abell <galen@galenabell.com>
|
|
# Maintainer: Galen Abell <galen@galenabell.com>
|
|
pkgname=py3-docstring-to-markdown
|
|
_pyname=docstring-to-markdown
|
|
pkgver=0.17
|
|
pkgrel=0
|
|
pkgdesc="On the fly conversion of Python docstrings to markdown"
|
|
url="https://github.com/python-lsp/docstring-to-markdown"
|
|
arch="noarch"
|
|
license="LGPL-2.1-only"
|
|
depends="py3-importlib-metadata py3-typing-extensions"
|
|
makedepends="py3-gpep517 py3-setuptools py3-setuptools_scm py3-wheel"
|
|
checkdepends="py3-pytest"
|
|
subpackages="$pkgname-pyc"
|
|
source="$_pyname-$pkgver.tar.gz::https://github.com/python-lsp/docstring-to-markdown/archive/v$pkgver.tar.gz"
|
|
builddir="$srcdir/$_pyname-$pkgver"
|
|
|
|
build() {
|
|
gpep517 build-wheel \
|
|
--wheel-dir .dist \
|
|
--output-fd 3 3>&1 >&2
|
|
}
|
|
|
|
check() {
|
|
python3 -m venv --clear --system-site-packages .testenv
|
|
.testenv/bin/python3 -m installer .dist/*.whl
|
|
.testenv/bin/python3 -m pytest -c /dev/null
|
|
}
|
|
|
|
package() {
|
|
python3 -m installer -d "$pkgdir" .dist/*.whl
|
|
}
|
|
|
|
sha512sums="
|
|
1b861eb1e92907ce69e2e0b49ecc13e6a5cb4c1c73980b3fe1f6e241b6e11688a96abaf97223932c4a90c451ced8285612b39076303ede891cc33ec4ce38aff0 docstring-to-markdown-0.17.tar.gz
|
|
"
|