Change:
The version of AWSCLI in master is 1.32.58. This version requires botocore==1.34.58, however the version of botocore in master is 1.34.87 AWSCli botocore pin: This started happening after changing my to Please run and paste the result. Add a :+1: [reaction] to [issues you find important]. [reaction]: [issues you find important]:
This should be fixed by , which syncs botocore, awscli, and boto3.

Discussion:
, awscli }: <del> python3.pkgs.buildPythonApplication rec { pname = "awscli"; version = "1.32.101"; # N.B: if you change this, change botocore and boto3 to a matching version too pyproject = true; </del> <ins> let botocoreVersion = python3.pkgs.botocore.version; # awscli.version should be pinned to 2 minor versions less than the botocoreVersion versionMinor = toString (lib.toInt (lib.versions.minor botocoreVersion) - 2); versionPatch = lib.versions.patch botocoreVersion; self = python3.pkgs.buildPythonApplication rec { pname = "awscli"; version = "1.${versionMinor}.${versionPatch}"; # N.B: if you change this, change botocore and boto3 to a matching version too pyproject = true; </ins> <del> src = fetchPypi { inherit pname version; hash = "sha256-M4KzuQ+srPfk85P5QeQfVMorSKWhmNhdX4AY0AeRDTQ="; }; </del> <ins> src = fetchPypi { inherit pname version; hash = "sha256-GPcXkl2H0XNaeqt2/qD5+KvW23dRB0X+zLWo9hLigQM="; }; </ins> <del> nativeBuildInputs = [ python3.pkgs.pythonRelaxDepsHook ]; </del> <ins> nativeBuildInputs = [ python3.pkgs.pythonRelaxDepsHook ]; </ins> <del> pythonRelaxDeps = [ "botocore" "colorama" "docutils" "rsa" ]; </del> <ins> pythonRelaxDeps = [ # botocore must not be relaxed "colorama" "docutils" "rsa" ]; </ins> <del> build-system = [ python3.pkgs.setuptools ]; </del> <ins> build-system = [ python3.pkgs.setuptools ]; </ins> <del> propagatedBuildInputs = with python3.pkgs; [ botocore s3transfer colorama docutils rsa pyyaml groff less ]; </del> <ins> propagatedBuildInputs = with python3.pkgs; [ botocore s3transfer colorama docutils rsa pyyaml groff less ]; </ins> <del> postInstall = '' mkdir -p $out/share/bash-completion/completions echo "complete -C $out/bin/aws_completer aws" > $out/share/bash-completion/completions/awscli </del> <ins> postInstall = '' mkdir -p $out/share/bash-completion/completions echo "complete -C $out/bin/aws_completer aws" > $out/share/bash-completion/completions/awscli </ins> <del> mkdir -p $out/share/zsh/site-functions mv $out/bin/aws_zsh_completer.sh $out/share/zsh/site-functions </del> <ins> mkdir -p $out/share/zsh/site-functions mv $out/bin/aws_zsh_completer.sh $out/share/zsh/site-functions </ins> <del> rm $out/bin/aws.cmd ''; </del> <ins> rm $out/bin/aws.cmd ''; </ins> <del> doInstallCheck = true; </del> <ins> doInstallCheck = true; </ins> <del> installCheckPhase = '' runHook preInstallCheck </del> <ins> installCheckPhase = '' runHook preInstallCheck </ins> <del> $out/bin/aws --version | grep "${python3.pkgs.botocore.version}" $out/bin/aws --version | grep "${version}" </del> <ins> $out/bin/aws --version | grep "${botocoreVersion}" $out/bin/aws --version | grep "${version}" </ins> <del> runHook postInstallCheck ''; </del> <ins> runHook postInstallCheck ''; </ins> <del> passthru = { python = python3; # for aws_shell updateScript = nix-update-script { # Excludes 1.x versions from the Github tags list extraArgs = [ "--version-regex" "^(1.(.*))" ]; }; tests.version = testers.testVersion { package = awscli; command = "aws --version"; inherit version; </del> <ins> passthru = { python = python3; # for aws_shell updateScript = nix-update-script { extraArgs = [ "--version=skip" ]; }; tests.version = testers.testVersion { package = awscli; command = "aws --version"; inherit version; }; </ins> }; <del> }; meta = with lib; { homepage = "https://aws.amazon.com/cli/"; changelog = "https://github.com/aws/aws-cli/blob/${version}/CHANGELOG.rst"; description = "Unified tool to manage your AWS services"; license = licenses.asl20; mainProgram = "aws"; maintainers = with maintainers; [ anthonyroussel ]; </del> <ins> meta = with lib; { homepage = "https://aws.amazon.com/cli/"; changelog = "https://github.com/aws/aws-cli/blob/${version}/CHANGELOG.rst"; description = "Unified tool to manage your AWS services"; license = licenses.asl20; mainProgram = "aws"; maintainers = with maintainers; [ anthonyroussel ]; }; </ins> }; <del> } </del> <ins> in assert self ? pythonRelaxDeps -> !(lib.elem "botocore" self.pythonRelaxDeps); self </ins>