1
0
Fork 0
mirror of https://github.com/NixOS/nixpkgs synced 2024-10-19 03:47:13 -04:00
nixpkgs/pkgs/development/tools/aws-sam-cli/default.nix

81 lines
1.9 KiB
Nix
Raw Normal View History

2018-06-12 09:15:06 -04:00
{ lib
, python
}:
2019-04-08 06:16:39 -04: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";
};
});
requests = super.requests.overridePythonAttrs (oldAttrs: rec {
version = "2.20.1";
src = oldAttrs.src.override {
inherit version;
sha256 = "ea881206e59f41dbd0bd445437d792e43906703fff75ca8ff43ccdb11f33f263";
};
});
idna = super.idna.overridePythonAttrs (oldAttrs: rec {
version = "2.7";
src = oldAttrs.src.override {
inherit version;
sha256 = "684a38a6f903c1d71d6d5fac066b58d7768af4de2b832e426ec79c30daa94a16";
};
});
six = super.six.overridePythonAttrs (oldAttrs: rec {
version = "1.11";
src = oldAttrs.src.override {
inherit version;
sha256 = "70e8a77beed4562e7f14fe23a786b54f6296e34344c23bc42f07b15018ff98e9";
};
});
};
};
in
with py.pkgs;
2018-06-12 09:15:06 -04:00
2018-06-22 06:49:52 -04:00
buildPythonApplication rec {
2018-06-12 09:15:06 -04:00
pname = "aws-sam-cli";
2019-04-08 06:16:39 -04:00
version = "0.14.2";
2018-06-12 09:15:06 -04:00
2018-06-22 06:49:52 -04:00
src = fetchPypi {
2018-06-12 09:15:06 -04:00
inherit pname version;
2019-04-08 06:16:39 -04:00
sha256 = "b7f80838d57c1096a9a03ed703a91a8a5775a6ead33df8f31765ecf39b3a956f";
2018-06-12 09:15:06 -04:00
};
# Tests are not included in the PyPI package
doCheck = false;
2018-06-22 06:49:52 -04:00
propagatedBuildInputs = [
2019-04-08 06:16:39 -04:00
aws-lambda-builders
2018-06-12 09:15:06 -04:00
aws-sam-translator
2019-04-08 06:16:39 -04:00
chevron
2018-06-12 09:15:06 -04:00
click
cookiecutter
2018-07-30 02:23:44 -04:00
dateparser
2018-06-12 09:15:06 -04:00
docker
flask
2019-04-08 06:16:39 -04:00
idna
pathlib2
requests
serverlessrepo
2018-06-12 09:15:06 -04:00
six
];
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 06:16:39 -04:00
maintainers = with maintainers; [ andreabedini dhkl ];
2018-06-12 09:15:06 -04:00
};
}