diff options
author | Piotr Karbowski <slashbeast@gentoo.org> | 2021-02-07 19:01:56 +0100 |
---|---|---|
committer | Piotr Karbowski <slashbeast@gentoo.org> | 2021-02-07 19:03:51 +0100 |
commit | 3c64a375f7044b33e518b2b4bf5733c5591d39d8 (patch) | |
tree | b760c9a1b13899abdfb57208493aa503bdbc53ff /dev-python/awscli | |
parent | dev-qt/qtwebengine: Restore KEYWORDS (diff) | |
download | gentoo-3c64a375f7044b33e518b2b4bf5733c5591d39d8.tar.gz gentoo-3c64a375f7044b33e518b2b4bf5733c5591d39d8.tar.bz2 gentoo-3c64a375f7044b33e518b2b4bf5733c5591d39d8.zip |
dev-python/awscli: 1.19.3 bump
- Switch to botocore 1.20*
- Depin the pyyaml and colorama deps -- awscli seems to work just fine
with latest, and upstream is insanely slow to bump the setup.py
install_required. pyyaml also have security bugs in older version.
Signed-off-by: Piotr Karbowski <slashbeast@gentoo.org>
Diffstat (limited to 'dev-python/awscli')
-rw-r--r-- | dev-python/awscli/Manifest | 1 | ||||
-rw-r--r-- | dev-python/awscli/awscli-1.19.3.ebuild | 56 |
2 files changed, 57 insertions, 0 deletions
diff --git a/dev-python/awscli/Manifest b/dev-python/awscli/Manifest index 45c2d3841b18..80f42185a2c9 100644 --- a/dev-python/awscli/Manifest +++ b/dev-python/awscli/Manifest @@ -1 +1,2 @@ DIST awscli-1.18.160.tar.gz 1882701 BLAKE2B cb797537646f27f8e09ac4674417ecac75fc691d6a7153d92cc810372721f3609ef37288cc8f226f09e1668b732bbe7d0b9195c2d0a29daca537b95181253fe9 SHA512 c69c617af4370f4d646051361cbf6d20add410a70bbc55a3fe3e8d5d957990dcaefa3991d61d14379d156919a2696303adb327ebb45f519fa557493c60f50489 +DIST awscli-1.19.3.tar.gz 1950305 BLAKE2B de9e11c2de811dea812e77a18dc9306044840ea586094cf57602cf4255723a7d94a20de414f8674d1ed6af2eed523024f61719299a3efcc492380d5d80c75575 SHA512 1034b82a9f1f0e92ae65bd28918f6f4422b0347435b4d2567b5004c370cbe1517d7fe275b672afd850ef6b99bee6f0b821097640a482626c800d19d095f42072 diff --git a/dev-python/awscli/awscli-1.19.3.ebuild b/dev-python/awscli/awscli-1.19.3.ebuild new file mode 100644 index 000000000000..a8cb483409f0 --- /dev/null +++ b/dev-python/awscli/awscli-1.19.3.ebuild @@ -0,0 +1,56 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI="7" + +PYTHON_COMPAT=( python3_{7,8,9} ) + +inherit bash-completion-r1 distutils-r1 + +DESCRIPTION="Universal Command Line Environment for AWS" +HOMEPAGE="https://pypi.org/project/awscli/" +#SRC_URI="mirror://pypi/${P:0:1}/${PN}/${P}.tar.gz" +SRC_URI="https://github.com/aws/aws-cli/archive/${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="Apache-2.0" +SLOT="0" +KEYWORDS="~amd64 ~arm64 ~x86" +IUSE="test" + +# requires network access +RESTRICT="test" + +RDEPEND=" + =dev-python/botocore-1.20*[${PYTHON_USEDEP}] + dev-python/colorama[${PYTHON_USEDEP}] + dev-python/docutils[${PYTHON_USEDEP}] + dev-python/rsa[${PYTHON_USEDEP}] + >=dev-python/s3transfer-0.3.0[${PYTHON_USEDEP}] + dev-python/pyyaml[${PYTHON_USEDEP}] +" +DEPEND="${RDEPEND}" + +BDEPEND=" + dev-python/setuptools[${PYTHON_USEDEP}] + test? ( + dev-python/mock[${PYTHON_USEDEP}] + dev-python/nose[${PYTHON_USEDEP}] + ) +" + +S="${WORKDIR}/aws-cli-${PV}" + +python_test() { + nosetests -vv || die +} + +python_install_all() { + newbashcomp bin/aws_bash_completer aws + + insinto /usr/share/zsh/site-functions + newins bin/aws_zsh_completer.sh _aws + + distutils-r1_python_install_all + + rm "${ED}"/usr/bin/{aws.cmd,aws_bash_completer,aws_zsh_completer.sh} || die +} |