aports/community/py3-rich/APKBUILD

41 lines
1.4 KiB
Text

# Contributor: Leo <thinkabit.ukim@gmail.com>
# Maintainer: Duncan Bellamy <dunk@denkimushi.com>
pkgname=py3-rich
pkgver=14.0.0
pkgrel=0
pkgdesc="Python library for rich text formatting and terminal formatting"
url="https://rich.readthedocs.io/en/latest/"
arch="noarch"
license="MIT"
depends="
py3-markdown-it-py
py3-pygments
"
makedepends="py3-gpep517 py3-installer py3-poetry-core py3-wheel"
checkdepends="py3-pytest py3-setuptools"
subpackages="$pkgname-pyc"
source="$pkgname-$pkgver.tar.gz::https://github.com/Textualize/rich/archive/refs/tags/v$pkgver.tar.gz
fix-pygments.patch"
builddir="$srcdir/rich-$pkgver"
build() {
gpep517 build-wheel \
--wheel-dir .dist \
--output-fd 3 3>&1 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 -k 'not test_python_render_simple_indent_guides and not test_python_render_line_range_indent_guides' \
--deselect=tests/test_console.py::test_brokenpipeerror
}
package() {
python3 -m installer -d "$pkgdir" .dist/*.whl
}
sha512sums="
e3192d75d35d9f63fa687a8e9e7893ea273ef193b7e27c266d2f1a1c62c7fa44e83cfb6ea3fef716fff6d337a826af393c223d5d4bddc52b4ec84aa6554379ef py3-rich-14.0.0.tar.gz
f19d34287cc7fb92a8430c27fc81d688dc4cf484c6bd4640a3d9e93d2e4f7e201e82b602557b0b8981315348e0d42d03470c481b7d271fe276ab5f3488a280b3 fix-pygments.patch
"