# Maintainer: TabulateJarl8 pkgname=python-vapor-steam pkgver=1.5.5 pkgrel=1 pkgdesc="TUI program to check the ProtonDB compatibility of all the games of a Steam user" arch=('any') url="https://github.com/TabulateJarl8/vapor" license=('GPLv3') # linkify-it-py isn't included in the python-textual package for some reason depends=('python-aiohttp' 'python-rich' 'python-textual' 'python-platformdirs' 'python-linkify-it-py') makedepends=('python-build' 'python-installer' 'python-poetry-core' 'python-wheel') checkdepends=('python-pytest' 'python-pytest-asyncio') _name=${pkgname#python-} _name=${_name//-/_} source=("https://files.pythonhosted.org/packages/source/${_name::1}/$_name/$_name-$pkgver.tar.gz") sha512sums=('a73956a15e987cfa90e8e2e225dc4ece5ef5b673ffba651012d9d48eb823de17dde4af852a496caf333b64641273aa88451720444602bd140ae455a0c40e0161') build() { cd "$srcdir/$_name-$pkgver" python -m build --wheel --no-isolation } check(){ cd "$srcdir/$_name-$pkgver" python -m venv --system-site-packages test-env test-env/bin/python -m installer dist/*.whl test-env/bin/python -m pytest } package() { cd "$srcdir/$_name-$pkgver" python -m installer --destdir="$pkgdir" dist/*.whl }