2017-11-10 18:02:35 +01:00
|
|
|
{ stdenv
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, botocore
|
|
|
|
, bcdoc
|
|
|
|
, s3transfer
|
|
|
|
, six
|
|
|
|
, colorama
|
|
|
|
, docutils
|
|
|
|
, rsa
|
|
|
|
, pyyaml
|
|
|
|
, groff
|
|
|
|
, less
|
|
|
|
}:
|
|
|
|
|
|
|
|
let
|
|
|
|
colorama_3_7 = colorama.overrideAttrs (old: rec {
|
|
|
|
name = "${pname}-${version}";
|
|
|
|
pname = "colorama";
|
|
|
|
version = "0.3.7";
|
2018-01-20 12:18:00 +01:00
|
|
|
src = old.src.override {
|
|
|
|
inherit version;
|
2017-11-10 18:02:35 +01:00
|
|
|
sha256 = "0avqkn6362v7k2kg3afb35g4sfdvixjgy890clip4q174p9whhz0";
|
|
|
|
};
|
|
|
|
});
|
|
|
|
|
|
|
|
in buildPythonPackage rec {
|
|
|
|
pname = "awscli";
|
2018-02-27 09:25:53 +01:00
|
|
|
version = "1.14.47";
|
2017-11-10 18:02:35 +01:00
|
|
|
namePrefix = "";
|
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2018-02-27 09:25:53 +01:00
|
|
|
sha256 = "269483910c820ae5b4f60021375f07e4f1c23f86505e1b9e29243880a660c1d8";
|
2017-11-10 18:02:35 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
# No tests included
|
|
|
|
doCheck = false;
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
botocore
|
|
|
|
bcdoc
|
|
|
|
s3transfer
|
|
|
|
six
|
|
|
|
colorama_3_7
|
|
|
|
docutils
|
|
|
|
rsa
|
|
|
|
pyyaml
|
|
|
|
groff
|
|
|
|
less
|
|
|
|
];
|
|
|
|
|
|
|
|
postInstall = ''
|
|
|
|
mkdir -p $out/etc/bash_completion.d
|
|
|
|
echo "complete -C $out/bin/aws_completer aws" > $out/etc/bash_completion.d/awscli
|
|
|
|
mkdir -p $out/share/zsh/site-functions
|
|
|
|
mv $out/bin/aws_zsh_completer.sh $out/share/zsh/site-functions
|
|
|
|
rm $out/bin/aws.cmd
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
homepage = https://aws.amazon.com/cli/;
|
|
|
|
description = "Unified tool to manage your AWS services";
|
|
|
|
license = stdenv.lib.licenses.asl20;
|
|
|
|
maintainers = with maintainers; [ muflax ];
|
|
|
|
};
|
|
|
|
}
|