1 # Copyright 1999-2020 Gentoo Authors
2 # Distributed under the terms of the GNU General Public License v2
6 PYTHON_COMPAT=( python2_7 python3_{6,7} pypy3 )
13 DESCRIPTION="Python module for creating Excel XLSX files"
14 HOMEPAGE="https://github.com/jmcnamara/XlsxWriter"
15 SRC_URI="mirror://pypi/${MY_PN:0:1}/${MY_PN}/${MY_P}.tar.gz
16 test? ( https://github.com/jmcnamara/XlsxWriter/archive/RELEASE_${PV}.zip -> ${P}-tests.zip )
22 KEYWORDS="~amd64 ~arm64 ~x86 ~amd64-linux ~x86-linux"
24 RESTRICT="!test? ( test )"
28 dev-python/setuptools[${PYTHON_USEDEP}]
29 test? ( app-arch/unzip
30 dev-python/pytest[${PYTHON_USEDEP}] )"
32 S="${WORKDIR}"/${MY_P}
34 python_prepare_all() {
36 cp -r "${WORKDIR}"/${MY_PN}-RELEASE_${PV}/${PN}/test ${PN}/ || die
38 distutils-r1_python_prepare_all