Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #59888 from joachifm/aws-sams-cli-backport
[release-19.03] Backport aws-sam-cli
- Loading branch information
Showing
7 changed files
with
184 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
51 changes: 51 additions & 0 deletions
51
pkgs/development/python-modules/aws-lambda-builders/default.nix
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
{ lib | ||
, buildPythonPackage | ||
, fetchFromGitHub | ||
, six | ||
, pytest | ||
, mock | ||
, parameterized | ||
, isPy35 | ||
}: | ||
|
||
buildPythonPackage rec { | ||
pname = "aws-lambda-builders"; | ||
version = "0.2.1"; | ||
|
||
# No tests available in PyPI tarball | ||
src = fetchFromGitHub { | ||
owner = "awslabs"; | ||
repo = "aws-lambda-builders"; | ||
rev = "v${version}"; | ||
sha256 = "1pbi6572q1nqs2wd7jx9d5vgf3rqdsqlaz4v8fqvl23wfb2c4vpd"; | ||
}; | ||
|
||
# Package is not compatible with Python 3.5 | ||
disabled = isPy35; | ||
|
||
propagatedBuildInputs = [ | ||
six | ||
]; | ||
|
||
checkInputs = [ | ||
pytest | ||
mock | ||
parameterized | ||
]; | ||
|
||
checkPhase = '' | ||
export PATH=$out/bin:$PATH | ||
pytest tests/functional | ||
''; | ||
|
||
meta = with lib; { | ||
homepage = https://github.com/awslabs/aws-lambda-builders; | ||
description = "A tool to compile, build and package AWS Lambda functions"; | ||
longDescription = '' | ||
Lambda Builders is a Python library to compile, build and package | ||
AWS Lambda functions for several runtimes & frameworks. | ||
''; | ||
license = licenses.asl20; | ||
maintainers = with maintainers; [ dhkl ]; | ||
}; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
{ lib | ||
, buildPythonPackage | ||
, fetchFromGitHub | ||
, python | ||
}: | ||
|
||
buildPythonPackage rec { | ||
pname = "chevron"; | ||
version = "0.13.1"; | ||
|
||
# No tests available in the PyPI tarball | ||
src = fetchFromGitHub { | ||
owner = "noahmorrison"; | ||
repo = "chevron"; | ||
rev = "0.13.1"; | ||
sha256 = "0l1ik8dvi6bgyb3ym0w4ii9dh25nzy0x4yawf4zbcyvvcb6af470"; | ||
}; | ||
|
||
checkPhase = '' | ||
${python.interpreter} test_spec.py | ||
''; | ||
|
||
meta = with lib; { | ||
homepage = https://github.com/noahmorrison/chevron; | ||
description = "A python implementation of the mustache templating language"; | ||
license = licenses.mit; | ||
maintainers = with maintainers; [ dhkl ]; | ||
}; | ||
} |
42 changes: 42 additions & 0 deletions
42
pkgs/development/python-modules/serverlessrepo/default.nix
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
{ lib | ||
, buildPythonPackage | ||
, fetchPypi | ||
, pytest | ||
, boto3 | ||
, six | ||
, pyyaml | ||
, mock | ||
}: | ||
|
||
buildPythonPackage rec { | ||
pname = "serverlessrepo"; | ||
version = "0.1.8"; | ||
|
||
src = fetchPypi { | ||
inherit pname version; | ||
sha256 = "533389d41a51450e50cc01405ab766550170149c08e1c85b3a1559b0fab4cb25"; | ||
}; | ||
|
||
propagatedBuildInputs = [ | ||
six | ||
boto3 | ||
pyyaml | ||
]; | ||
|
||
checkInputs = [ pytest mock ]; | ||
|
||
checkPhase = '' | ||
pytest tests/unit | ||
''; | ||
|
||
meta = with lib; { | ||
homepage = https://github.com/awslabs/aws-serverlessrepo-python; | ||
description = "Helpers for working with the AWS Serverless Application Repository"; | ||
longDescription = '' | ||
A Python library with convenience helpers for working with the | ||
AWS Serverless Application Repository. | ||
''; | ||
license = lib.licenses.asl20; | ||
maintainers = with maintainers; [ dhkl ]; | ||
}; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters