python3Packages.aws-sam-cli: 1.29.0 -> 1.35.0, fix build

This commit is contained in:
legendofmiracles 2021-11-05 11:56:12 -06:00
parent ec46532a47
commit b09fcdb0be
No known key found for this signature in database
GPG key ID: 19B082B3DEFE5451

View file

@ -5,11 +5,11 @@
python3.pkgs.buildPythonApplication rec {
pname = "aws-sam-cli";
version = "1.29.0";
version = "1.35.0";
src = python3.pkgs.fetchPypi {
inherit pname version;
sha256 = "sha256-JXphjERqY5Vj8j2F4Z7FrFJJEpBgK/5236pYfQRVdco=";
sha256 = "sha256-ojJoC8UuZDVm6CDmYbPoO0e+1QAYa0UcekYEd/MGFRM=";
};
# Tests are not included in the PyPI package
@ -30,6 +30,8 @@ python3.pkgs.buildPythonApplication rec {
serverlessrepo
tomlkit
watchdog
typing-extensions
regex
];
postFixup = if enableTelemetry then "echo aws-sam-cli TELEMETRY IS ENABLED" else ''
@ -42,10 +44,14 @@ python3.pkgs.buildPythonApplication rec {
substituteInPlace requirements/base.txt \
--replace "click~=7.1" "click~=8.0" \
--replace "Flask~=1.1.2" "Flask~=2.0" \
--replace "dateparser~=0.7" "dateparser>=0.7" \
--replace "dateparser~=1.0" "dateparser>=0.7" \
--replace "docker~=4.2.0" "docker>=4.2.0" \
--replace "requests==" "requests #" \
--replace "watchdog==" "watchdog #"
--replace "watchdog==" "watchdog #" \
--replace "aws_lambda_builders==" "aws-lambda-builders #" \
--replace "typing_extensions==" "typing-extensions #" \
--replace "regex==" "regex #" \
--replace "tzlocal==3.0" "tzlocal==2.*"
'';
meta = with lib; {