1 # Copyright 1999-2020 Gentoo Authors
2 # Distributed under the terms of the GNU General Public License v2
5 PYTHON_COMPAT=( python{3_6,3_7} )
10 DESCRIPTION="Convert MS Office xlsx files to CSV"
11 HOMEPAGE="https://github.com/dilshod/xlsx2csv/"
12 SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
16 KEYWORDS="~amd64 ~x86"
18 DEPEND="dev-lang/perl"
20 PATCHES=( "${FILESDIR}"/${P}-tests.patch )
22 python_compile_all() {
27 "${PYTHON}" test/run || die "tests failed with ${EPYTHON}"
30 python_install_all() {
31 distutils-r1_python_install_all