# Contributor: Galen Abell # Maintainer: Galen Abell pkgname=toot pkgver=0.38.1 pkgrel=0 pkgdesc="mastodon cli & tui" url="https://github.com/ihabunek/toot" arch="noarch" license="GPL-3.0-only" depends="py3-requests py3-beautifulsoup4 py3-wcwidth py3-urwid py3-tomlkit" makedepends="py3-gpep517 py3-setuptools py3-wheel" checkdepends="py3-pytest" subpackages="$pkgname-pyc" source="https://files.pythonhosted.org/packages/source/t/toot/toot-$pkgver.tar.gz" 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 # Integration tests require a running Mastodon instance. .testenv/bin/python3 -m pytest --ignore=tests/integration/ } package() { python3 -m installer -d "$pkgdir" \ .dist/*.whl } sha512sums=" 8c691ad13cc21b8ab4903f3502521b04c2063d9f2d1d81b88552f52c7f6681704eff5e9c2b4b8cb4ab8aed270e6313a6f75d4a0221f9da67143f2ae6c2ccf27d toot-0.38.1.tar.gz "