aports/community/toot/APKBUILD
2025-03-08 13:12:32 +00:00

47 lines
1.1 KiB
Text

# Contributor: Galen Abell <galen@galenabell.com>
# Maintainer: Galen Abell <galen@galenabell.com>
pkgname=toot
pkgver=0.48.1
pkgrel=0
pkgdesc="mastodon cli & tui"
url="https://github.com/ihabunek/toot"
arch="noarch"
license="GPL-3.0-only"
depends="
py3-beautifulsoup4
py3-dateutil
py3-click
py3-pillow
py3-requests
py3-term-image
py3-tomlkit
py3-urwid
py3-urwidgets
py3-wcwidth
"
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="
8c51bf2a10aeff8807a90184caca6fd947700857d7e14485b4009a9705a93b9d47a175a7b11ae5cf8b4b2012417e5e6fb9a22b5cde0adee75e3b01cde259d26e toot-0.48.1.tar.gz
"