mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-07-23 19:25:25 +03:00
56 lines
1.3 KiB
Text
56 lines
1.3 KiB
Text
# Maintainer: Hoang Nguyen <folliekazetani@protonmail.com>
|
|
pkgname=py3-textual
|
|
_pyname=${pkgname#py3-}
|
|
pkgver=0.20.1
|
|
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
|
|
"
|
|
subpackages="$pkgname-pyc"
|
|
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="
|
|
94c6fa1f87a1eb4e0556fb40442fca05292fd222eef2c6575a04ebad5706b5f23db457da791e8e601d30cd69225e276465bdb6003eaa0295b6453a6c1fb1ef5f py3-textual-0.20.1.tar.gz
|
|
"
|