2015-01-09 22:35:59 +00:00
|
|
|
{ stdenv, fetchzip, pythonPackages, groff }:
|
2013-07-31 11:32:25 +00:00
|
|
|
|
|
|
|
pythonPackages.buildPythonPackage rec {
|
|
|
|
name = "awscli-${version}";
|
2015-05-24 01:28:03 +00:00
|
|
|
version = "1.7.29";
|
2013-07-31 11:32:25 +00:00
|
|
|
namePrefix = "";
|
|
|
|
|
2015-01-09 22:27:10 +00:00
|
|
|
src = fetchzip {
|
2013-07-31 11:32:25 +00:00
|
|
|
url = "https://github.com/aws/aws-cli/archive/${version}.tar.gz";
|
2015-05-24 01:28:03 +00:00
|
|
|
sha256 = "0r0w5qldimdp2d2ykw7pmppn8chbhh6cm48famhldqnyrh3vrf02";
|
2013-07-31 11:32:25 +00:00
|
|
|
};
|
|
|
|
|
2014-12-26 05:12:24 +00:00
|
|
|
propagatedBuildInputs = [
|
2013-07-31 11:32:25 +00:00
|
|
|
pythonPackages.botocore
|
2014-02-12 14:35:01 +00:00
|
|
|
pythonPackages.bcdoc
|
|
|
|
pythonPackages.six
|
2013-07-31 11:32:25 +00:00
|
|
|
pythonPackages.colorama
|
2014-02-12 14:35:01 +00:00
|
|
|
pythonPackages.docutils
|
|
|
|
pythonPackages.rsa
|
|
|
|
pythonPackages.pyasn1
|
2015-01-09 22:35:59 +00:00
|
|
|
groff
|
2013-07-31 11:32:25 +00:00
|
|
|
];
|
2014-12-26 05:12:24 +00:00
|
|
|
|
2015-07-28 08:05:13 +00:00
|
|
|
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
|
|
|
|
'';
|
|
|
|
|
2014-12-26 05:12:24 +00:00
|
|
|
meta = {
|
|
|
|
homepage = https://aws.amazon.com/cli/;
|
|
|
|
description = "Unified tool to manage your AWS services";
|
|
|
|
license = stdenv.lib.licenses.asl20;
|
|
|
|
maintainers = with stdenv.lib.maintainers; [ muflax ];
|
|
|
|
};
|
2013-07-31 11:32:25 +00:00
|
|
|
}
|