diff options
author | V3n3RiX <venerix@koprulu.sector> | 2022-01-04 01:27:12 +0000 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2022-01-04 01:27:12 +0000 |
commit | 3517852e3b8a68d1e997770fc0650c5053bafc6c (patch) | |
tree | 44068672445b1418489aed82de58df3c470289e7 /dev-python/yapf/yapf-0.32.0.ebuild | |
parent | 0f15659d48c193027158492acb726297501202c5 (diff) |
gentoo resync : 04.01.2022
Diffstat (limited to 'dev-python/yapf/yapf-0.32.0.ebuild')
-rw-r--r-- | dev-python/yapf/yapf-0.32.0.ebuild | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/dev-python/yapf/yapf-0.32.0.ebuild b/dev-python/yapf/yapf-0.32.0.ebuild new file mode 100644 index 000000000000..93675f93d2f4 --- /dev/null +++ b/dev-python/yapf/yapf-0.32.0.ebuild @@ -0,0 +1,25 @@ +# Copyright 2018-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +PYTHON_COMPAT=( python3_{8..10} ) +inherit distutils-r1 + +DESCRIPTION="A formatter for Python files" +HOMEPAGE="https://github.com/google/yapf" +SRC_URI="https://github.com/google/yapf/archive/v${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="Apache-2.0" +SLOT="0" +KEYWORDS="~amd64 ~arm64 ~x86" +IUSE="test" +RESTRICT="!test? ( test )" + +BDEPEND=" + test? ( dev-python/toml[${PYTHON_USEDEP}] )" + +python_test() { + "${EPYTHON}" -m unittest discover -v -p '*_test.py' || + die "Tests failed with ${EPYTHON}" +} |