pentoo-overlay/dev-python/yamllint/yamllint-1.26.1.ebuild
2023-11-30 11:14:42 +08:00

27 lines
578 B
Bash

# Copyright 1999-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
PYTHON_COMPAT=( python3_{10..12} )
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 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() {
python3 -m pytest tests/ || die
}