pentoo-overlay/dev-python/yamllint/yamllint-1.17.0.ebuild
2019-11-19 00:36:28 +03:00

28 lines
624 B
Bash

# Copyright 1999-2019 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
PYTHON_COMPAT=( python{2_7,3_{5,6,7}} )
inherit distutils-r1
DESCRIPTION="A linter for YAML files"
HOMEPAGE="https://github.com/adrienverge/yamllint"
SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
KEYWORDS="~amd64 ~arm64 ~mips ~x86"
LICENSE="GPL-3"
SLOT="0"
IUSE="test"
RDEPEND="${PYTHON_DEPS}
dev-python/pathspec[${PYTHON_USEDEP}]
dev-python/pyyaml[${PYTHON_USEDEP}]"
DEPEND="${RDEPEND}
test? ( dev-python/pytest )"
src_test() {
python2 -m pytest tests/ || die
python3 -m pytest tests/ || die
}