blob: a82926a1fe502bbefa1f9d39cc79baa69181b54a (
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
|
# Maintainer: Jeff Barfield (noprobelm[at]protonmail[dot]org)
pkgname=python-terminaltables
_pyname=terminaltables
pkgver=3.1.10
pkgrel=11
pkgdesc="Generate simple tables in terminals from a nested list of strings"
arch=('any')
url="https://github.com/matthewdeanmartin/terminaltables"
license=('MIT')
depends=('python')
makedepends=('python-build' 'python-wheel' 'python-installer' 'python-poetry-core')
checkdepends=('python-pytest' 'python-colorama' 'python-termcolor' 'python-colorclass')
source=("${_pyname}-${pkgver}.tar.gz::https://github.com/matthewdeanmartin/${_pyname}/archive/v${pkgver}.tar.gz"
python-3.8.patch)
sha512sums=('84fa403cee4206b6b19de0206d89535bd2965a0796e1890dd9b0a9c6593c5f41d0d24b88ee9db426067c777712a4e810d67d4d0246496239a7a96b53a24e8174'
'9a33ef51cbd2854bf9acc247e2d966332229446158e7dae9cad25e03335eb9689d50b0a22234285aa56c707e6e93c12f950299efcfbe7e42ed527216090592f2')
prepare() {
cd ${_pyname}-${pkgver}
patch -Np1 < ../python-3.8.patch
}
build() {
cd ${_pyname}-${pkgver}
python -m build --wheel --no-isolation --skip-dependency-check
}
package() {
cd ${_pyname}-${pkgver}
python -m installer --destdir="$pkgdir" --compile-bytecode=2 dist/*.whl
install -Dm 644 LICENSE -t "${pkgdir}/usr/share/licenses/${pkgname}"
install -Dm 644 README.md -t "${pkgdir}/usr/share/doc/${pkgname}"
install -Dm 644 example*.py -t "${pkgdir}/usr/share/doc/${pkgname}/examples"
}
|