8 py = python3.override {
9 packageOverrides = self: super: {
10 pyyaml = super.pyyaml.overridePythonAttrs (oldAttrs: rec {
12 src = fetchFromGitHub {
16 hash = "sha256-VUqnlOF/8zSOqh6JoEYOsfQ0P4g+eYqxyFTywgCS7gM=";
20 PYTHONPATH="tests/lib3:$PYTHONPATH" ${self.python.interpreter} -m test_all
29 with py.pkgs; buildPythonApplication rec {
31 version = "1.25.76"; # N.B: if you change this, change botocore and boto3 to a matching version too
34 inherit pname version;
35 hash = "sha256-PSr0zZEGXFxcFSN7QQ5Ux0Z4aCwwm9na+2hIv/gR6+s=";
38 # https://github.com/aws/aws-cli/issues/4837
40 substituteInPlace setup.py \
41 --replace "docutils>=0.10,<0.17" "docutils>=0.10" \
42 --replace "colorama>=0.2.5,<0.4.5" "colorama>=0.2.5,<0.5" \
43 --replace "rsa>=3.1.2,<4.8" "rsa<5,>=3.1.2"
46 propagatedBuildInputs = [
60 mkdir -p $out/share/bash-completion/completions
61 echo "complete -C $out/bin/aws_completer aws" > $out/share/bash-completion/completions/awscli
63 mkdir -p $out/share/zsh/site-functions
64 mv $out/bin/aws_zsh_completer.sh $out/share/zsh/site-functions
70 python = py; # for aws_shell
73 doInstallCheck = true;
74 installCheckPhase = ''
75 runHook preInstallCheck
77 $out/bin/aws --version | grep "${py.pkgs.botocore.version}"
78 $out/bin/aws --version | grep "${version}"
80 runHook postInstallCheck
84 homepage = "https://aws.amazon.com/cli/";
85 description = "Unified tool to manage your AWS services";
86 license = licenses.asl20;
88 maintainers = with maintainers; [ ];