summaryrefslogtreecommitdiff
blob: 7edab7267a424833a39a30e240f56aeff0a4faa7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
# Copyright 2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=7

DISTUTILS_USE_SETUPTOOLS=rdepend
PYTHON_COMPAT=( python3_{8,9} )
inherit distutils-r1

DESCRIPTION="A framework for managing and maintaining multi-language pre-commit hooks."
HOMEPAGE="https://pre-commit.com/"
SRC_URI="mirror://pypi/${PN:0:1}/${PN/-/_}/${PN/-/_}-${PV}.tar.gz"

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

RDEPEND="${RDEPEND}
	>=dev-python/cfgv-2[${PYTHON_USEDEP}]
	>=dev-python/identify-1[${PYTHON_USEDEP}]
	>=dev-python/nodeenv-0.11.1[${PYTHON_USEDEP}]
	>=dev-python/pyyaml-5.1[${PYTHON_USEDEP}]
	dev-python/toml[${PYTHON_USEDEP}]
	>=dev-python/virtualenv-20.0.8[${PYTHON_USEDEP}]
"
# missing
# covdefaults
# pytest-env
BDEPEND="${BDEPEND}
	test? (
		dev-python/coverage[${PYTHON_USEDEP}]
		dev-python/distlib[${PYTHON_USEDEP}]
		dev-python/re-assert[${PYTHON_USEDEP}]
	)
"

distutils_enable_tests pytest