1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-05 12:02:47 +00:00
nixpkgs/pkgs/development/tools/aws-sam-cli/default.nix

45 lines
898 B
Nix
Raw Normal View History

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