mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-08-05 13:27:09 +02:00
40 lines
1.1 KiB
Plaintext
40 lines
1.1 KiB
Plaintext
# Contributor: Leo <thinkabit.ukim@gmail.com>
|
|
# Maintainer: psykose <alice@ayaya.dev>
|
|
pkgname=py3-rich
|
|
pkgver=13.3.5
|
|
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
|
|
python3
|
|
"
|
|
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/willmcgugan/rich/archive/refs/tags/v$pkgver.tar.gz"
|
|
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'
|
|
}
|
|
|
|
package() {
|
|
python3 -m installer -d "$pkgdir" dist/*.whl
|
|
}
|
|
|
|
sha512sums="
|
|
7ade640e48605540b09264164376783eea4bf86bfc1238ab3b7aeada0b25f7fde0a0c2d34b54dfca135765d29d7c7d614d56003f45776f4623cc82ace43d9e9d py3-rich-13.3.5.tar.gz
|
|
"
|