1 # Copyright 1999-2020 Gentoo Authors
2 # Distributed under the terms of the GNU General Public License v2
6 PYTHON_COMPAT=( python3_{6,7} )
8 inherit bash-completion-r1 distutils-r1
10 DESCRIPTION="Universal Command Line Environment for AWS"
11 HOMEPAGE="https://pypi.org/project/awscli/"
12 #SRC_URI="mirror://pypi/${P:0:1}/${PN}/${P}.tar.gz"
13 SRC_URI="https://github.com/aws/aws-cli/archive/${PV}.tar.gz -> ${P}.tar.gz"
20 # requires network access
24 >=dev-python/botocore-1.13.28[${PYTHON_USEDEP}]
25 <dev-python/colorama-0.3.9.0[${PYTHON_USEDEP}]
26 dev-python/docutils[${PYTHON_USEDEP}]
27 <dev-python/rsa-3.5.0.0[${PYTHON_USEDEP}]
28 >=dev-python/s3transfer-0.2.0[${PYTHON_USEDEP}]
29 <dev-python/pyyaml-5.2.0[${PYTHON_USEDEP}]
34 dev-python/setuptools[${PYTHON_USEDEP}]
36 dev-python/mock[${PYTHON_USEDEP}]
37 dev-python/nose[${PYTHON_USEDEP}]
41 S="${WORKDIR}/aws-cli-${PV}"
47 python_install_all() {
48 newbashcomp bin/aws_bash_completer aws
50 insinto /usr/share/zsh/site-functions
51 newins bin/aws_zsh_completer.sh _aws
53 distutils-r1_python_install_all
55 rm "${ED}"/usr/bin/{aws.cmd,aws_bash_completer,aws_zsh_completer.sh} || die