aws-sam-cli: 0.14.2 -> 0.16.1

This commit is contained in:
David Leung 2019-05-24 23:22:13 +08:00
parent 2da548f856
commit 47e31ab621
No known key found for this signature in database
GPG Key ID: 5CD75B8491383836

View File

@ -1,5 +1,6 @@
{ lib
, python
, fetchFromGitHub
}:
let
@ -13,27 +14,11 @@ let
};
});
requests = super.requests.overridePythonAttrs (oldAttrs: rec {
version = "2.20.1";
aws-sam-translator = super.aws-sam-translator.overridePythonAttrs (oldAttrs: rec {
version = "1.10.0";
src = oldAttrs.src.override {
inherit version;
sha256 = "ea881206e59f41dbd0bd445437d792e43906703fff75ca8ff43ccdb11f33f263";
};
});
idna = super.idna.overridePythonAttrs (oldAttrs: rec {
version = "2.7";
src = oldAttrs.src.override {
inherit version;
sha256 = "684a38a6f903c1d71d6d5fac066b58d7768af4de2b832e426ec79c30daa94a16";
};
});
six = super.six.overridePythonAttrs (oldAttrs: rec {
version = "1.11";
src = oldAttrs.src.override {
inherit version;
sha256 = "70e8a77beed4562e7f14fe23a786b54f6296e34344c23bc42f07b15018ff98e9";
sha256 = "0e1fa094c6791b233f5e73f2f0803ec6e0622f2320ec5a969f0986855221b92b";
};
});
};
@ -45,11 +30,11 @@ with py.pkgs;
buildPythonApplication rec {
pname = "aws-sam-cli";
version = "0.14.2";
version = "0.16.1";
src = fetchPypi {
inherit pname version;
sha256 = "b7f80838d57c1096a9a03ed703a91a8a5775a6ead33df8f31765ecf39b3a956f";
sha256 = "2dd68800723c76f52980141ba704e105d77469b6ba465781fbc9120e8121e76c";
};
# Tests are not included in the PyPI package
@ -71,6 +56,11 @@ buildPythonApplication rec {
six
];
postPatch = ''
substituteInPlace requirements/base.txt --replace "requests==2.20.1" "requests==2.21.0"
substituteInPlace requirements/base.txt --replace "six~=1.11.0" "six~=1.12.0"
'';
meta = with lib; {
homepage = https://github.com/awslabs/aws-sam-cli;
description = "CLI tool for local development and testing of Serverless applications";