2018-06-12 13:15:06 +00:00
|
|
|
{ lib
|
|
|
|
, python
|
|
|
|
}:
|
|
|
|
|
2018-06-22 10:49:52 +00:00
|
|
|
with python.pkgs;
|
2018-06-12 13:15:06 +00:00
|
|
|
|
2018-06-22 10:49:52 +00:00
|
|
|
buildPythonApplication rec {
|
2018-06-12 13:15:06 +00:00
|
|
|
pname = "aws-sam-cli";
|
2018-07-30 06:23:44 +00:00
|
|
|
version = "0.5.0";
|
2018-06-12 13:15:06 +00:00
|
|
|
|
2018-06-22 10:49:52 +00:00
|
|
|
src = fetchPypi {
|
2018-06-12 13:15:06 +00:00
|
|
|
inherit pname version;
|
2018-07-30 06:23:44 +00:00
|
|
|
sha256 = "2acf9517f467950adb4939746658091e60cf60ee80093ffd0d3d821cb8a1f9fc";
|
2018-06-12 13:15:06 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
# Tests are not included in the PyPI package
|
|
|
|
doCheck = false;
|
|
|
|
|
2018-06-22 10:49:52 +00:00
|
|
|
propagatedBuildInputs = [
|
2018-06-12 13:15:06 +00:00
|
|
|
aws-sam-translator
|
|
|
|
boto3
|
|
|
|
click
|
|
|
|
cookiecutter
|
2018-07-30 06:23:44 +00:00
|
|
|
dateparser
|
2018-06-12 13:15:06 +00:00
|
|
|
docker
|
|
|
|
enum34
|
|
|
|
flask
|
2018-07-30 06:23:44 +00:00
|
|
|
python-dateutil
|
2018-06-12 13:15:06 +00:00
|
|
|
pyyaml
|
|
|
|
six
|
|
|
|
];
|
|
|
|
|
2018-07-30 06:23:44 +00:00
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace ./requirements/base.txt \
|
|
|
|
--replace 'aws-sam-translator==1.6.0' 'aws-sam-translator>=1.6.0';
|
|
|
|
'';
|
|
|
|
|
2018-06-12 13:15:06 +00:00
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|