awscli: 1.14.50 -> 1.15.10; fix build

As reported in #39676 the build broke because of ca52152 as the bump of
`pythonPackages.botocore` to 1.10.9 clashed with the wanted dependencies
in `awscli`.

In order to reduce the risk of accidental bugs because of loosened
version constraints I bumped the AWS CLI to `1.15.10` which depends on
`botocore@1.10` as well.

Fixes #39676
This commit is contained in:
Maximilian Bosch 2018-04-29 17:40:18 +02:00
parent 8d6d1363de
commit 0e5eafc1fd
No known key found for this signature in database
GPG Key ID: 091DBF4D1FC46B8E

View File

@ -19,11 +19,11 @@ let
in py.pkgs.buildPythonApplication rec {
pname = "awscli";
version = "1.14.50";
version = "1.15.10";
src = py.pkgs.fetchPypi {
inherit pname version;
sha256 = "1yiwj7cl9r1k9226mdq6pcmrs044k7p3d133lzgv9rb1dgp4053c";
sha256 = "0nwpanbfx5h0bad8wwvvbhpjf9r6n885bbv2w8mw7vijdgclkq8x";
};
# No tests included
@ -42,6 +42,12 @@ in py.pkgs.buildPythonApplication rec {
less
];
postPatch = ''
for i in {py,cfg}; do
substituteInPlace setup.$i --replace "botocore==1.10.10" "botocore>=1.10.9,<=1.11"
done
'';
postInstall = ''
mkdir -p $out/etc/bash_completion.d
echo "complete -C $out/bin/aws_completer aws" > $out/etc/bash_completion.d/awscli