2020-01-05 20:52:58 +03:00
|
|
|
# Copyright 1999-2020 Gentoo Authors
|
2018-08-01 21:30:06 +03:00
|
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
|
2019-05-09 18:52:08 +03:00
|
|
|
EAPI=7
|
2018-08-01 21:30:06 +03:00
|
|
|
|
2020-10-18 23:58:26 +03:00
|
|
|
DISTUTILS_USE_SETUPTOOLS=rdepend
|
2020-01-08 13:42:52 +03:00
|
|
|
PYTHON_COMPAT=( python3_{6,7} )
|
2018-08-01 21:30:06 +03:00
|
|
|
|
|
|
|
inherit distutils-r1
|
|
|
|
|
|
|
|
DESCRIPTION="provides a collection of utilities for working with Excel files"
|
|
|
|
HOMEPAGE="https://pypi.org/project/xlutils/"
|
|
|
|
SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
|
|
|
|
|
|
|
|
KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
|
|
|
|
IUSE="test"
|
2019-12-11 07:26:00 +03:00
|
|
|
RESTRICT="!test? ( test )"
|
2018-08-01 21:30:06 +03:00
|
|
|
|
|
|
|
LICENSE="MIT"
|
|
|
|
SLOT="0"
|
|
|
|
|
|
|
|
RDEPEND="
|
2019-05-09 18:52:08 +03:00
|
|
|
>=dev-python/xlwt-1.3[${PYTHON_USEDEP}]
|
|
|
|
>=dev-python/xlrd-1.2[${PYTHON_USEDEP}]"
|
2018-08-01 21:30:06 +03:00
|
|
|
|
|
|
|
DEPEND="${RDEPEND}
|
|
|
|
test? (
|
2019-05-09 18:52:08 +03:00
|
|
|
>=dev-python/errorhandler-2[${PYTHON_USEDEP}]
|
|
|
|
>=dev-python/manuel-1.9[${PYTHON_USEDEP}]
|
2018-08-01 21:30:06 +03:00
|
|
|
dev-python/mock[${PYTHON_USEDEP}]
|
2019-05-09 18:52:08 +03:00
|
|
|
dev-python/nose[${PYTHON_USEDEP}]
|
2018-08-01 21:30:06 +03:00
|
|
|
dev-python/pytest[${PYTHON_USEDEP}]
|
|
|
|
dev-python/testfixtures[${PYTHON_USEDEP}]
|
|
|
|
)"
|
|
|
|
|
2019-05-09 18:52:08 +03:00
|
|
|
PATCHES=(
|
|
|
|
"${FILESDIR}/${PN}-2.0.0-fix-tests.patch"
|
|
|
|
)
|
|
|
|
|
2018-08-01 21:30:06 +03:00
|
|
|
python_test() {
|
2019-05-09 18:52:08 +03:00
|
|
|
# upstream runs its tests with nose, but the suite actually runs better
|
|
|
|
# when ran through pytest...
|
|
|
|
pytest -vv || die "Tests fail with ${EPYTHON}"
|
2018-08-01 21:30:06 +03:00
|
|
|
}
|