mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-06-06 19:14:48 +02:00
32 lines
1,010 B
Text
32 lines
1,010 B
Text
# Contributor: Keith Maxwell <keith.maxwell@gmail.com>
|
|
# Maintainer: Keith Maxwell <keith.maxwell@gmail.com>
|
|
pkgname=rstcheck
|
|
pkgver=6.2.5
|
|
pkgrel=0
|
|
pkgdesc="Checks syntax of reStructuredText and code blocks nested within it"
|
|
url="https://github.com/rstcheck/rstcheck"
|
|
arch="noarch"
|
|
license="MIT"
|
|
depends="python3 py3-typer rstcheck-core"
|
|
makedepends="py3-gpep517 py3-setuptools py3-wheel"
|
|
checkdepends="bash py3-pytest"
|
|
subpackages="$pkgname-pyc"
|
|
source="$pkgname-$pkgver.tar.gz::https://github.com/rstcheck/rstcheck/archive/v$pkgver.tar.gz"
|
|
|
|
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="
|
|
375a89f146fb268bb1e22ff94ad19fc46d2216c5b84e57bae88f89a49bfe76e60499c7a62d268555052f5765893c84d32dc49d221393a01433754ff18a6b06b8 rstcheck-6.2.5.tar.gz
|
|
"
|