blob: f89139bbc2fda46c54bff91c34bbc23f3b72f690 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
|
# Maintainer: Astro Benzene <universebenzene at sina dot com>
pkgbase=python-pytermgui
_pyname=${pkgbase#python-}
pkgname=("python-${_pyname}")
#"python-${_pyname}-doc")
#pkgname=("${_pname}" "${_pname}-doc")
pkgver=7.7.2
pkgrel=1
pkgdesc="Easy building of TUIs in Python"
arch=('any')
url="https://ptg.bczsalba.com/"
license=('MIT')
makedepends=('python-hatch-fancy-pypi-readme'
'python-build'
'python-installer')
# 'mkdocs')
checkdepends=('python-pytest'
'python-testfixtures'
'python-wcwidth'
'python-typing_extensions'
'python-yaml')
#source=("https://github.com/oprypin/mkdocs-section-index/archive/refs/tags/v${pkgver}.tar.gz")
source=("https://files.pythonhosted.org/packages/source/${_pyname:0:1}/${_pyname}/${_pyname}-${pkgver}.tar.gz")
sha256sums=('2bf245ce0f7fe39ca4b37ec58246ef1a8fa5283bfe4a7c7d63ce09ea4bcc4643')
build() {
cd ${srcdir}/${_pyname}-${pkgver}
python -m build --wheel --no-isolation
# msg "Building Docs"
# mkdocs build
}
check() {
cd ${srcdir}/${_pyname}-${pkgver}
pytest || warning "Tests failed" # -vv -l -ra --color=yes -o console_output_style=count
}
package_python-pytermgui() {
depends=('python>=3.8' 'python-wcwidth' 'python-typing_extensions')
optdepends=('python-yaml: YAML related features'
'python-pytermgui-doc: Documentation for PyTermGUI')
cd ${srcdir}/${_pyname}-${pkgver}
install -D -m644 -t "${pkgdir}/usr/share/licenses/${pkgname}" LICENSE
install -D -m644 -t "${pkgdir}/usr/share/doc/${pkgname}" README.md
python -m installer --destdir="${pkgdir}" dist/*.whl
}
#package_python-pytermgui-doc() {
# pkgdesc="Documentation for PyTermGUI"
# provides=("python-${pkgname}=${pkgver}")
# conflicts=("python-${pkgname}")
# cd ${srcdir}/${_pyname}-${pkgver}
#
# install -D -m644 LICENSE -t "${pkgdir}/usr/share/licenses/${pkgname}"
# install -d -m755 "${pkgdir}/usr/share/doc/${pkgbase}"
# cp -a site "${pkgdir}/usr/share/doc/${pkgbase}"
#}
|