diff options
author | V3n3RiX <venerix@koprulu.sector> | 2023-02-06 03:18:56 +0000 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2023-02-06 03:18:56 +0000 |
commit | a2f130f3156ea1d203e99a781424790176b9b2b5 (patch) | |
tree | 10fbba06303ed3b478a8a39114e6b6127ef18dbb /dev-vcs/pre-commit/pre-commit-3.0.4.ebuild | |
parent | 519f4aac6d5896fe0204e6429485f95240c7ff58 (diff) |
gentoo auto-resync : 06:02:2023 - 03:18:56
Diffstat (limited to 'dev-vcs/pre-commit/pre-commit-3.0.4.ebuild')
-rw-r--r-- | dev-vcs/pre-commit/pre-commit-3.0.4.ebuild | 56 |
1 files changed, 56 insertions, 0 deletions
diff --git a/dev-vcs/pre-commit/pre-commit-3.0.4.ebuild b/dev-vcs/pre-commit/pre-commit-3.0.4.ebuild new file mode 100644 index 000000000000..5a0641fc9c02 --- /dev/null +++ b/dev-vcs/pre-commit/pre-commit-3.0.4.ebuild @@ -0,0 +1,56 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +PYTHON_COMPAT=( python3_{9..11} ) +DISTUTILS_SINGLE_IMPL=1 +DISTUTILS_USE_PEP517=setuptools +PYTHON_REQ_USE="sqlite" + +inherit distutils-r1 + +DESCRIPTION="A framework for managing and maintaining multi-language Git pre-commit hooks" +HOMEPAGE="https://pre-commit.com/" +SRC_URI="https://github.com/${PN}/${PN}/archive/refs/tags/v${PV}.tar.gz -> ${P}.gh.tar.gz" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64 ~hppa ~ppc ~ppc64 ~x86" + +RDEPEND="dev-vcs/git + $(python_gen_cond_dep ' + >=dev-python/cfgv-2.0.0[${PYTHON_USEDEP}] + >=dev-python/identify-1.0.0[${PYTHON_USEDEP}] + >=dev-python/nodeenv-0.11.1[${PYTHON_USEDEP}] + >=dev-python/pyyaml-5.1[${PYTHON_USEDEP}] + >=dev-python/virtualenv-20.10.0[${PYTHON_USEDEP}] + ')" +# coreutils requirement: see Bug #885559 +BDEPEND="test? ( + $(python_gen_cond_dep ' + dev-python/pytest-env[${PYTHON_USEDEP}] + dev-python/re-assert[${PYTHON_USEDEP}] + ') + sys-apps/coreutils[-multicall] +)" + +PATCHES=( + "${FILESDIR}"/${PN}-2.20.0-tests_git_file_transport.patch +) + +DOCS=( CHANGELOG.md CONTRIBUTING.md README.md ) + +# The former two require a boatload of dependencies (e.g. Conda, Go, R and more) in order to run +# and while some of them do include "skip if not found" logic, most of them do not. +# The latter consistently fail with +# Calling "git rev-parse" fails with "fatal: not a git repository (or any of the parent directories): .git". +# including with the sandbox disabled and when run manually with tox. +EPYTEST_DESELECT=( + tests/languages/ + tests/repository_test.py + tests/main_test.py::test_all_cmds + tests/main_test.py::test_try_repo +) + +distutils_enable_tests pytest |