mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-08-05 21:37:15 +02:00
44 lines
1.2 KiB
Plaintext
44 lines
1.2 KiB
Plaintext
# Contributor: Thomas Boerger <thomas@webhippie.de>
|
|
# Maintainer: Thomas Boerger <thomas@webhippie.de>
|
|
pkgname=py3-prompt_toolkit
|
|
pkgver=3.0.38
|
|
pkgrel=1
|
|
pkgdesc="Library for building powerful interactive command lines in Python"
|
|
url="https://github.com/prompt-toolkit/python-prompt-toolkit"
|
|
arch="noarch"
|
|
license="BSD-3-Clause"
|
|
depends="python3 py3-wcwidth"
|
|
makedepends="
|
|
py3-gpep517
|
|
py3-setuptools
|
|
py3-wheel
|
|
"
|
|
checkdepends="py3-pytest-xdist"
|
|
subpackages="$pkgname-pyc"
|
|
source="$pkgname-$pkgver.tar.gz::https://github.com/prompt-toolkit/python-prompt-toolkit/archive/refs/tags/$pkgver.tar.gz"
|
|
builddir="$srcdir/python-prompt-toolkit-$pkgver"
|
|
|
|
replaces=py-prompt_toolkit # Backwards compatibility
|
|
provides=py-prompt_toolkit=$pkgver-r$pkgrel # Backwards compatibility
|
|
|
|
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 -n auto
|
|
}
|
|
|
|
package() {
|
|
python3 -m installer -d "$pkgdir" \
|
|
dist/*.whl
|
|
}
|
|
|
|
sha512sums="
|
|
ffdcf300bc8b0f9d5dd074045dbc5ab3d7f1efab954a695724968f3529948578c7368b7284518b20ba02a744fe08464a46bf6e02bce9867a2dfa9821c4308b9f py3-prompt_toolkit-3.0.38.tar.gz
|
|
"
|