2015-08-18 09:18:55 +00:00
|
|
|
{ stdenv, fetchFromGitHub, pythonPackages, groff }:
|
2013-07-31 11:32:25 +00:00
|
|
|
|
|
|
|
pythonPackages.buildPythonPackage rec {
|
|
|
|
name = "awscli-${version}";
|
2015-12-03 13:22:06 +00:00
|
|
|
version = "1.9.6";
|
2013-07-31 11:32:25 +00:00
|
|
|
namePrefix = "";
|
|
|
|
|
2015-08-18 09:18:55 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "aws";
|
|
|
|
repo = "aws-cli";
|
|
|
|
rev = version;
|
2015-12-03 13:22:06 +00:00
|
|
|
sha256 = "08qclasxf8zdxwmngvynq9n5vv4nwdy68ma7wn7ji40bxmls37g2";
|
2013-07-31 11:32:25 +00:00
|
|
|
};
|
|
|
|
|
2014-12-26 05:12:24 +00:00
|
|
|
propagatedBuildInputs = [
|
2015-12-03 13:25:29 +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
|
|
|
}
|