# Copyright 1999-2021 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=7 DISTUTILS_USE_SETUPTOOLS=rdepend PYTHON_COMPAT=( python3_{8,10} ) inherit distutils-r1 DESCRIPTION="Python library for guest operations" HOMEPAGE="https://github.com/vmware/vsphere-guest-run" SRC_URI="https://github.com/vmware/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz" LICENSE="BSD-2" SLOT="0" KEYWORDS="~amd64 ~x86" RDEPEND="dev-python/click[${PYTHON_USEDEP}] dev-python/pygments[${PYTHON_USEDEP}] dev-python/pyvmomi[${PYTHON_USEDEP}] dev-python/requests[${PYTHON_USEDEP}] dev-python/tabulate[${PYTHON_USEDEP}]" BDEPEND="dev-python/pbr[${PYTHON_USEDEP}]" python_prepare_all() { # pbr is unable to detect version echo -e "Name: ${PN}\nVersion: ${PV}" > PKG-INFO \ || die "echo failed for PKG-INFO" distutils-r1_python_prepare_all }