# Copyright 1999-2023 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=8

PYTHON_COMPAT=(python3_{10,11})

inherit distutils-r1

DESCRIPTION="Render Eliot logs as an ASCII tree"
HOMEPAGE="https://github.com/jonathanj/eliottree"
SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"

LICENSE="MIT"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="test"

RDEPEND="
	${PYTHON_DEPS}
	>=dev-python/six-1.9.0[${PYTHON_USEDEP}]
	>=dev-python/toolz-0.9.0[${PYTHON_USEDEP}]
	>=dev-python/termcolor-1.1.0[${PYTHON_USEDEP}]
	>=dev-python/jmespath-0.7.1[${PYTHON_USEDEP}]
	>=dev-python/iso8601-0.1.10[${PYTHON_USEDEP}]
	>=dev-python/eliot-0.12.0[${PYTHON_USEDEP}]
	>=dev-python/tree-format-0.1.1[${PYTHON_USEDEP}]
"
DEPEND="
	dev-python/setuptools[${PYTHON_USEDEP}]
	test? (
		>=dev-python/testtools-1.8.0
		>=dev-python/pytest-2.7.1
	)
	${RDEPEND}
"