# Contributor: Thomas Boerger # Maintainer: Thomas Boerger 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 "