gentoo/dev-python/matplotlib2tikz/matplotlib2tikz-0.6.18.ebuild
David Seifert 76c0a78131
*/*: [QA] Remove redundant || die on virtx
* `virtx` never required `|| die` to begin with.

Closes: https://github.com/gentoo/gentoo/pull/13954
Signed-off-by: David Seifert <soap@gentoo.org>
2019-12-12 13:55:31 +01:00

39 lines
912 B
Bash

# Copyright 1999-2019 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=6
PYTHON_COMPAT=( python2_7 python3_{5,6} )
inherit distutils-r1 virtualx
DESCRIPTION="Convert matplotlib figures into TikZ/PGFPlots"
HOMEPAGE="https://github.com/nschloe/matplotlib2tikz"
SRC_URI="https://github.com/nschloe/matplotlib2tikz/archive/v${PV}.tar.gz -> ${P}.tar.gz"
KEYWORDS="~amd64"
LICENSE="MIT"
SLOT="0"
IUSE="test"
RDEPEND="
dev-python/matplotlib[${PYTHON_USEDEP}]
dev-python/numpy[${PYTHON_USEDEP}]
dev-python/pillow[${PYTHON_USEDEP}]
dev-python/six[${PYTHON_USEDEP}]"
DEPEND="dev-python/setuptools[${PYTHON_USEDEP}]
test? (
${RDEPEND}
dev-python/ImageHash[${PYTHON_USEDEP}]
dev-python/pytest[${PYTHON_USEDEP}]
dev-tex/pgf
)"
# we have not succeeded in getting the tests to work yet ;-)
RESTRICT="test"
python_test() {
local -x MPLBACKEND=Agg
virtx py.test -v
}