awscli: 1.27.79 -> 1.29.9
This commit is contained in:
parent
438475dac5
commit
50d38ab78d
1 changed files with 7 additions and 29 deletions
|
@ -1,39 +1,17 @@
|
|||
{ lib
|
||||
, python3
|
||||
, fetchFromGitHub
|
||||
, fetchPypi
|
||||
, groff
|
||||
, less
|
||||
}:
|
||||
let
|
||||
py = python3.override {
|
||||
packageOverrides = self: super: {
|
||||
pyyaml = super.pyyaml.overridePythonAttrs rec {
|
||||
version = "5.4.1";
|
||||
src = fetchFromGitHub {
|
||||
owner = "yaml";
|
||||
repo = "pyyaml";
|
||||
rev = version;
|
||||
hash = "sha256-VUqnlOF/8zSOqh6JoEYOsfQ0P4g+eYqxyFTywgCS7gM=";
|
||||
};
|
||||
checkPhase = ''
|
||||
runHook preCheck
|
||||
PYTHONPATH="tests/lib3:$PYTHONPATH" ${self.python.interpreter} -m test_all
|
||||
runHook postCheck
|
||||
'';
|
||||
};
|
||||
};
|
||||
self = py;
|
||||
};
|
||||
|
||||
in
|
||||
with py.pkgs; buildPythonApplication rec {
|
||||
python3.pkgs.buildPythonApplication rec {
|
||||
pname = "awscli";
|
||||
version = "1.27.79"; # N.B: if you change this, change botocore and boto3 to a matching version too
|
||||
version = "1.29.9"; # N.B: if you change this, change botocore and boto3 to a matching version too
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
hash = "sha256-A3MVM5MV+PTwR4W2ALrqEtMaFtVAEt8yqkd4ZLsvHGE=";
|
||||
hash = "sha256-8SmOu79FZESL1Hd15wdd1m1Uewswqaum2y8LOZAl9P8=";
|
||||
};
|
||||
|
||||
# https://github.com/aws/aws-cli/issues/4837
|
||||
|
@ -44,11 +22,10 @@ with py.pkgs; buildPythonApplication rec {
|
|||
--replace "rsa>=3.1.2,<4.8" "rsa<5,>=3.1.2"
|
||||
'';
|
||||
|
||||
propagatedBuildInputs = [
|
||||
propagatedBuildInputs = with python3.pkgs; [
|
||||
botocore
|
||||
bcdoc
|
||||
s3transfer
|
||||
six
|
||||
colorama
|
||||
docutils
|
||||
rsa
|
||||
|
@ -68,14 +45,15 @@ with py.pkgs; buildPythonApplication rec {
|
|||
'';
|
||||
|
||||
passthru = {
|
||||
python = py; # for aws_shell
|
||||
python = python3; # for aws_shell
|
||||
};
|
||||
|
||||
doInstallCheck = true;
|
||||
|
||||
installCheckPhase = ''
|
||||
runHook preInstallCheck
|
||||
|
||||
$out/bin/aws --version | grep "${py.pkgs.botocore.version}"
|
||||
$out/bin/aws --version | grep "${python3.pkgs.botocore.version}"
|
||||
$out/bin/aws --version | grep "${version}"
|
||||
|
||||
runHook postInstallCheck
|
||||
|
|
Loading…
Reference in a new issue