# Maintainer: Hoang Nguyen pkgname=py3-textual _pyname=${pkgname#py3-} pkgver=0.13.0 pkgrel=0 pkgdesc="TUI framework for Python inspired by modern web development" url="https://github.com/Textualize/textual" arch="noarch" license="MIT" depends=" python3 py3-importlib-metadata py3-markdown-it-py py3-rich py3-typing-extensions " makedepends="py3-gpep517 py3-installer py3-poetry-core" checkdepends=" py3-aiohttp py3-click py3-jinja2 py3-msgpack py3-nanoid py3-pytest py3-pytest-aiohttp py3-pytest-asyncio py3-syrupy py3-time-machine " source="$pkgname-$pkgver.tar.gz::https://github.com/Textualize/textual/archive/refs/tags/v$pkgver.tar.gz" builddir="$srcdir/$_pyname-$pkgver" 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 # The failed tests seem to be an upstream issue testenv/bin/python3 -m pytest \ --ignore=tests/snapshot_tests/test_snapshots.py } package() { python3 -m installer -d "$pkgdir" \ dist/*.whl } sha512sums=" fa204467f1eb64987358d4b5c91d330c04c9db32ae96bb40cfeec055880970e2770cc56a96e4462fe2d20c63cbf30e3789b50bcceb0f01aa93edc775b4e2cd37 py3-textual-0.13.0.tar.gz "