aws-sam-cli: disable telemetry

Since v0.19.0 aws-sam-cli sends telemetry data to AWS[1]. To protect the users'
privacy, we opt-out by default.

[1] https://github.com/awslabs/aws-sam-cli/issues/1272
This commit is contained in:
Stefano Mazzucco 2020-02-07 20:52:05 +00:00
parent cba54926dc
commit c6b1ce47b6

View file

@ -83,6 +83,11 @@ buildPythonApplication rec {
tomlkit
];
postFixup = ''
# Disable telemetry: https://github.com/awslabs/aws-sam-cli/issues/1272
wrapProgram $out/bin/sam --set SAM_CLI_TELEMETRY 0
'';
# fix over-restrictive version bounds
postPatch = ''
substituteInPlace requirements/base.txt \