nixpkgs/pkgs/development/tools/aws-sam-cli/default.nix

45 lines
898 B
Nix
Raw Normal View History

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