about summary refs log tree commit diff
path: root/pkgs/development/tools/aws-sam-cli
diff options
context:
space:
mode:
authorDavid Leung <david@davidslab.com>2019-04-08 18:16:39 +0800
committerDavid Leung <david@davidslab.com>2019-04-08 18:16:39 +0800
commite5c07b875472374fe1788531b5c6790620d77b5e (patch)
treebb8b3bb82b6c42d6e9c1926c16f4836aaabe9b6a /pkgs/development/tools/aws-sam-cli
parent0100fe974f86efaf14d3f66e1435740650dbb913 (diff)
aws-sam-cli: 0.5.0 -> 0.14.2
Diffstat (limited to 'pkgs/development/tools/aws-sam-cli')
-rw-r--r--pkgs/development/tools/aws-sam-cli/default.nix62
1 files changed, 49 insertions, 13 deletions
diff --git a/pkgs/development/tools/aws-sam-cli/default.nix b/pkgs/development/tools/aws-sam-cli/default.nix
index 8778084163e8d..a63395efda872 100644
--- a/pkgs/development/tools/aws-sam-cli/default.nix
+++ b/pkgs/development/tools/aws-sam-cli/default.nix
@@ -2,43 +2,79 @@
 , python
 }:
 
-with python.pkgs;
+let
+  py = python.override {
+    packageOverrides = self: super: {
+      click = super.click.overridePythonAttrs (oldAttrs: rec {
+        version = "6.7";
+        src = oldAttrs.src.override {
+          inherit version;
+          sha256 = "f15516df478d5a56180fbf80e68f206010e6d160fc39fa508b65e035fd75130b";
+        };
+      });
+
+      requests = super.requests.overridePythonAttrs (oldAttrs: rec {
+        version = "2.20.1";
+        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";
+        };
+      });
+    };
+  };
+
+in
+
+with py.pkgs;
 
 buildPythonApplication rec {
   pname = "aws-sam-cli";
-  version = "0.5.0";
+  version = "0.14.2";
 
   src = fetchPypi {
     inherit pname version;
-    sha256 = "2acf9517f467950adb4939746658091e60cf60ee80093ffd0d3d821cb8a1f9fc";
+    sha256 = "b7f80838d57c1096a9a03ed703a91a8a5775a6ead33df8f31765ecf39b3a956f";
   };
 
   # Tests are not included in the PyPI package
   doCheck = false;
 
   propagatedBuildInputs = [
+    aws-lambda-builders
     aws-sam-translator
-    boto3
+    chevron
     click
     cookiecutter
     dateparser
     docker
-    enum34
     flask
-    python-dateutil
-    pyyaml
+    idna
+    pathlib2
+    requests
+    serverlessrepo
     six
   ];
 
-  postPatch = ''
-    substituteInPlace ./requirements/base.txt \
-      --replace 'aws-sam-translator==1.6.0' 'aws-sam-translator>=1.6.0';
-  '';
-
   meta = with lib; {
     homepage = https://github.com/awslabs/aws-sam-cli;
     description = "CLI tool for local development and testing of Serverless applications";
     license = licenses.asl20;
-    maintainers = with maintainers; [ andreabedini ];
+    maintainers = with maintainers; [ andreabedini dhkl ];
   };
 }