anchor.diff:          src = self.fetchPypi {
             inherit (oldAttrs) pname;
             inherit version;
  -          sha256 = "sha256-MGLTFcsWVC/gTdgjny6LwyOO6QRc1QcLkVzy677Lqqw=";
  +          hash = "sha256-MGLTFcsWVC/gTdgjny6LwyOO6QRc1QcLkVzy677Lqqw=";
  +        };
  +      });
  +
  +      prompt-toolkit = super.prompt-toolkit.overridePythonAttrs (oldAttrs: rec {
  +        version = "3.0.28";
  +        src = self.fetchPypi {
  +          pname = "prompt_toolkit";
  +          inherit version;
  +          hash = "sha256-nxzRax6GwpaPJRnX+zHdnWaZFvUVYSwmnRTp7VK1FlA=";
           };
         });
       };
  
positive.code: in
  with py.pkgs; buildPythonApplication rec {
    pname = "awscli2";
    version = "2.7.33"; # N.B: if you change this, check if overrides are still up-to-date
  
    src = fetchFromGitHub {
      owner = "aws";
      repo = "aws-cli";
      rev = version;
      sha256 = "sha256-9X056Xc9DPp8BiuAeCvQrswcj7mnZKrkMOad5aP1TI8=";
    };
  
    propagatedBuildInputs = [
      awscrt
  
negative.code:     rm $out/bin/aws.cmd
    '';
  
    doCheck = true;
  
    preCheck = ''
      export PATH=$PATH:$out/bin
      export HOME=$(mktemp -d)
    '';
  
    pytestFlagsArray = [
      "-Wignore::DeprecationWarning"
    ];
  
    disabledTestPaths = [
      # Integration tests require networking
      "tests/integration"
  
      # Disable slow tests (only run unit tests)
      "tests/backends"
      "tests/functional"
    ];
  
    pythonImportsCheck = [
      "awscli"
    ];
  
    passthru = {
      python = py; # for aws_shell
      updateScript = nix-update-script {
        attrPath = pname;
      };
    };
  
    meta = with lib; {
      homepage = "https://docs.aws.amazon.com/cli/latest/userguide/install-cliv2.html";
      changelog = "https://github.com/aws/aws-cli/blob/${version}/CHANGELOG.rst";
      description = "Unified tool to manage your AWS services";
      license = licenses.asl20;
      maintainers = with maintainers; [ bhipple davegallant bryanasdev000 devusb anthonyroussel ];
    };
  }
  