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

72 lines
1.7 KiB
Nix
Raw Normal View History

2018-06-12 13:15:06 +00:00
{ lib
, python
2019-05-24 15:22:13 +00:00
, fetchFromGitHub
2018-06-12 13:15:06 +00:00
}:
2019-04-08 10:16:39 +00:00
let
py = python.override {
packageOverrides = self: super: {
click = super.click.overridePythonAttrs (oldAttrs: rec {
version = "6.7";
src = oldAttrs.src.override {
inherit version;
sha256 = "f15516df478d5a56180fbf80e68f206010e6d160fc39fa508b65e035fd75130b";
};
});
2019-05-24 15:22:13 +00:00
aws-sam-translator = super.aws-sam-translator.overridePythonAttrs (oldAttrs: rec {
version = "1.10.0";
2019-04-08 10:16:39 +00:00
src = oldAttrs.src.override {
inherit version;
2019-05-24 15:22:13 +00:00
sha256 = "0e1fa094c6791b233f5e73f2f0803ec6e0622f2320ec5a969f0986855221b92b";
2019-04-08 10:16:39 +00:00
};
});
};
};
in
with py.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";
2019-05-24 15:22:13 +00:00
version = "0.16.1";
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;
2019-05-24 15:22:13 +00:00
sha256 = "2dd68800723c76f52980141ba704e105d77469b6ba465781fbc9120e8121e76c";
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 = [
2019-04-08 10:16:39 +00:00
aws-lambda-builders
2018-06-12 13:15:06 +00:00
aws-sam-translator
2019-04-08 10:16:39 +00:00
chevron
2018-06-12 13:15:06 +00:00
click
cookiecutter
2018-07-30 06:23:44 +00:00
dateparser
2018-06-12 13:15:06 +00:00
docker
flask
2019-04-08 10:16:39 +00:00
idna
pathlib2
requests
serverlessrepo
2018-06-12 13:15:06 +00:00
six
];
2019-05-24 15:22:13 +00:00
postPatch = ''
substituteInPlace requirements/base.txt --replace "requests==2.20.1" "requests==2.21.0"
substituteInPlace requirements/base.txt --replace "six~=1.11.0" "six~=1.12.0"
2019-05-25 12:43:54 +00:00
substituteInPlace requirements/base.txt --replace "PyYAML~=3.12" "PyYAML~=5.1"
2019-05-24 15:22:13 +00:00
'';
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;
2019-04-08 10:16:39 +00:00
maintainers = with maintainers; [ andreabedini dhkl ];
2018-06-12 13:15:06 +00:00
};
}