From 10b83ac7ad8aaad18a53bb8e19fc74d0a8bce9a8 Mon Sep 17 00:00:00 2001 From: David Leung Date: Wed, 24 Apr 2019 22:28:20 +0800 Subject: [PATCH 1/3] pythonPackages.aws-lambda-builders: 0.2.1 -> 0.3.0 --- .../python-modules/aws-lambda-builders/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/python-modules/aws-lambda-builders/default.nix b/pkgs/development/python-modules/aws-lambda-builders/default.nix index 16f5e19b7866..4554fe98c1b7 100644 --- a/pkgs/development/python-modules/aws-lambda-builders/default.nix +++ b/pkgs/development/python-modules/aws-lambda-builders/default.nix @@ -10,14 +10,14 @@ buildPythonPackage rec { pname = "aws-lambda-builders"; - version = "0.2.1"; + version = "0.3.0"; # No tests available in PyPI tarball src = fetchFromGitHub { owner = "awslabs"; repo = "aws-lambda-builders"; rev = "v${version}"; - sha256 = "1pbi6572q1nqs2wd7jx9d5vgf3rqdsqlaz4v8fqvl23wfb2c4vpd"; + sha256 = "1c3r3iz29s68mlmdsxbl65x5zqx25b89d40rir6729ck4gll4dyd"; }; # Package is not compatible with Python 3.5 From 2da548f856996a5c9bc56d28758d0f3ab49307c7 Mon Sep 17 00:00:00 2001 From: David Leung Date: Tue, 7 May 2019 08:06:03 +0800 Subject: [PATCH 2/3] pythonPackages.serverlessrepo: fix build by pinning pyyaml at 3.12 --- .../python-modules/serverlessrepo/default.nix | 25 +++++++++++++------ 1 file changed, 18 insertions(+), 7 deletions(-) diff --git a/pkgs/development/python-modules/serverlessrepo/default.nix b/pkgs/development/python-modules/serverlessrepo/default.nix index d70abe1f95fd..7c89d9d1f8d9 100644 --- a/pkgs/development/python-modules/serverlessrepo/default.nix +++ b/pkgs/development/python-modules/serverlessrepo/default.nix @@ -1,13 +1,24 @@ { lib -, buildPythonPackage -, fetchPypi -, pytest -, boto3 -, six -, pyyaml -, mock +, python }: +let + py = python.override { + packageOverrides = self: super: { + pyyaml = super.pyyaml.overridePythonAttrs (oldAttrs: rec { + version = "3.12"; + src = oldAttrs.src.override { + inherit version; + sha256 = "592766c6303207a20efc445587778322d7f73b161bd994f227adaa341ba212ab"; + }; + }); + }; + }; + +in + +with py.pkgs; + buildPythonPackage rec { pname = "serverlessrepo"; version = "0.1.8"; From 47e31ab62143678d472bff4f927888a4258c606e Mon Sep 17 00:00:00 2001 From: David Leung Date: Fri, 24 May 2019 23:22:13 +0800 Subject: [PATCH 3/3] aws-sam-cli: 0.14.2 -> 0.16.1 --- .../development/tools/aws-sam-cli/default.nix | 32 +++++++------------ 1 file changed, 11 insertions(+), 21 deletions(-) diff --git a/pkgs/development/tools/aws-sam-cli/default.nix b/pkgs/development/tools/aws-sam-cli/default.nix index a63395efda87..70fb86559d90 100644 --- a/pkgs/development/tools/aws-sam-cli/default.nix +++ b/pkgs/development/tools/aws-sam-cli/default.nix @@ -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";