aws-sam-cli: refactor

This commit is contained in:
Fabian Affolter 2024-02-25 12:17:50 +01:00
parent f370e5a33d
commit 764f14dc92

View File

@ -11,7 +11,7 @@
python3.pkgs.buildPythonApplication rec {
pname = "aws-sam-cli";
version = "1.108.0";
format = "pyproject";
pyproject = true;
disabled = python3.pythonOlder "3.8";
@ -28,16 +28,16 @@ python3.pkgs.buildPythonApplication rec {
];
pythonRelaxDeps = [
"aws-lambda-builders"
"aws-sam-translator"
"boto3-stubs"
"cfn-lint"
"tzlocal"
"cookiecutter"
"docker"
"aws-lambda-builders"
"tomlkit"
"rich"
"jsonschema"
"rich"
"tomlkit"
"tzlocal"
];
propagatedBuildInputs = with python3.pkgs; [
@ -86,8 +86,6 @@ python3.pkgs.buildPythonApplication rec {
--prefix PATH : $out/bin:${lib.makeBinPath [ git ]}
'';
doCheck = true;
nativeCheckInputs = with python3.pkgs; [
filelock
flaky
@ -105,22 +103,27 @@ python3.pkgs.buildPythonApplication rec {
pytestFlagsArray = [
"tests"
# Disable tests that requires networking or complex setup
"--ignore=tests/end_to_end"
"--ignore=tests/integration"
"--ignore=tests/regression"
"--ignore=tests/smoke"
"--ignore=tests/unit/lib/telemetry"
# Disable flaky tests
"--ignore=tests/unit/lib/samconfig/test_samconfig.py"
"--deselect=tests/unit/lib/sync/flows/test_rest_api_sync_flow.py::TestRestApiSyncFlow::test_update_stage"
"--deselect=tests/unit/lib/sync/flows/test_rest_api_sync_flow.py::TestRestApiSyncFlow::test_delete_deployment"
"--deselect=tests/unit/local/lambda_service/test_local_lambda_invoke_service.py::TestValidateRequestHandling::test_request_with_no_data"
# Disable warnings
"-W ignore::DeprecationWarning"
"-W"
"ignore::DeprecationWarning"
];
disabledTestPaths = [
# Disable tests that requires networking or complex setup
"tests/end_to_end"
"tests/integration"
"tests/regression"
"tests/smoke"
"tests/unit/lib/telemetry"
# Disable flaky tests
"tests/unit/lib/samconfig/test_samconfig.py"
];
disabledTests = [
# Disable flaky tests
"test_update_stage"
"test_delete_deployment"
"test_request_with_no_data"
];
pythonImportsCheck = [