32 lines
839 B
Bash
32 lines
839 B
Bash
# Template file for 'python-texttable'
|
|
pkgname=python-texttable
|
|
version=1.6.1
|
|
revision=1
|
|
archs=noarch
|
|
wrksrc="texttable-${version}"
|
|
build_style=python-module
|
|
pycompile_module="texttable.py"
|
|
hostmakedepends="python-setuptools python3-setuptools"
|
|
depends="python"
|
|
checkdepends="python3-pytest"
|
|
short_desc="Python2 module for creating simple ASCII tables"
|
|
maintainer="Sergi Alvarez <pancake@nopcode.org>"
|
|
license="LGPL-3.0-or-later"
|
|
homepage="https://github.com/foutaise/texttable/"
|
|
distfiles="${PYPI_SITE}/t/texttable/texttable-${version}.tar.gz"
|
|
checksum=2b60a5304ccfbeac80ffae7350d7c2f5d7a24e9aab5036d0f82489746419d9b2
|
|
|
|
do_check() {
|
|
pytest3 tests.py
|
|
}
|
|
|
|
python3-texttable_package() {
|
|
noarch=yes
|
|
depends="python3"
|
|
pycompile_module="texttable.py"
|
|
short_desc="${short_desc/Python2/Python3}"
|
|
pkg_install() {
|
|
vmove usr/lib/python3*
|
|
}
|
|
}
|