mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-08-05 13:27:09 +02:00
38 lines
1.1 KiB
Plaintext
38 lines
1.1 KiB
Plaintext
# Contributor: Duncan Bellamy <dunk@denkimushi.com>
|
|
# Maintainer: Duncan Bellamy <dunk@denkimushi.com>
|
|
pkgname=py3-prettytable3
|
|
pkgver=3.7.0
|
|
pkgrel=1
|
|
pkgdesc="Display tabular data in a visually appealing ASCII table format"
|
|
url="https://github.com/jazzband/prettytable"
|
|
arch="noarch"
|
|
license="BSD-3-Clause"
|
|
depends="python3 py3-wcwidth !py3-prettytable"
|
|
makedepends="py3-gpep517 py3-hatchling py3-hatch-vcs py3-installer"
|
|
checkdepends="py3-pytest py3-pytest-lazy-fixture"
|
|
subpackages="$pkgname-pyc"
|
|
source="$pkgname-$pkgver.tar.gz::https://github.com/jazzband/prettytable/archive/$pkgver.tar.gz"
|
|
builddir="$srcdir/prettytable-$pkgver"
|
|
|
|
build() {
|
|
export SETUPTOOLS_SCM_PRETEND_VERSION=$pkgver
|
|
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="
|
|
5411bf700e0046a63ebbea7575e5617d2045cc409a00d8d6e2362d96d4ec514cd6e815132dc0b80fe864a862c329e7f1606f5e55a4bf014b0ec9d690b57e6783 py3-prettytable3-3.7.0.tar.gz
|
|
"
|