1
0
Fork 0
mirror of https://gitlab.alpinelinux.org/alpine/aports.git synced 2025-07-23 03:05:48 +03:00
aports/community/py3-prompt_toolkit/APKBUILD
psykose 74ae7e0077 community/py3-prompt_toolkit: downgrade to 3.0.36
this breaks with aws-cli and i need to investigate more
2023-02-26 05:47:32 +01:00

42 lines
1.2 KiB
Text

# Contributor: Thomas Boerger <thomas@webhippie.de>
# Maintainer: Thomas Boerger <thomas@webhippie.de>
pkgname=py3-prompt_toolkit
pkgver=3.0.36
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"
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="
438f82d11af9bae325355e85ae49f91ffa349765274f7eec5ff3f99de338d35dc2f698d5278d9c14ff7c4109c6ddd5735b0073f775003e31c0641c488c451490 py3-prompt_toolkit-3.0.36.tar.gz
"