push sheeet
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s

This commit is contained in:
Dark Steveneq
2025-10-09 14:15:47 +02:00
commit 646b892680
49168 changed files with 5897842 additions and 0 deletions

View File

@@ -0,0 +1,99 @@
{
lib,
boto3,
buildPythonPackage,
fetchFromGitHub,
jsonschema,
parameterized,
pydantic,
pytest-env,
pytest-rerunfailures,
pytest-xdist,
pytestCheckHook,
pythonOlder,
pyyaml,
setuptools,
typing-extensions,
}:
buildPythonPackage rec {
pname = "aws-sam-translator";
version = "1.99.0";
pyproject = true;
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "aws";
repo = "serverless-application-model";
tag = "v${version}";
hash = "sha256-Y82qN2bmzE5Xqz2wSw9lWItsPbsRevLL7FlLN0FGKs0=";
};
postPatch = ''
# don't try to use --cov or fail on new warnings
rm pytest.ini
'';
build-system = [ setuptools ];
dependencies = [
boto3
jsonschema
pydantic
typing-extensions
];
nativeCheckInputs = [
parameterized
pytest-env
pytest-rerunfailures
pytest-xdist
pytestCheckHook
pyyaml
];
preCheck = ''
export AWS_DEFAULT_REGION=us-east-1
'';
enabledTestPaths = [
"tests"
];
disabledTestMarks = [
"slow"
];
disabledTests = [
# urllib3 2.0 compat
"test_plugin_accepts_different_sar_client"
"test_plugin_accepts_flags"
"test_plugin_accepts_parameters"
"test_plugin_default_values"
"test_plugin_invalid_configuration_raises_exception"
"test_plugin_must_setup_correct_name"
"test_must_process_applications"
"test_must_process_applications_validate"
"test_process_invalid_applications"
"test_process_invalid_applications_validate"
"test_resolve_intrinsics"
"test_sar_service_calls"
"test_sar_success_one_app"
"test_sar_throttling_doesnt_stop_processing"
"test_sleep_between_sar_checks"
"test_unexpected_sar_error_stops_processing"
];
__darwinAllowLocalNetworking = true;
pythonImportsCheck = [ "samtranslator" ];
meta = with lib; {
description = "Python library to transform SAM templates into AWS CloudFormation templates";
homepage = "https://github.com/aws/serverless-application-model";
changelog = "https://github.com/aws/serverless-application-model/releases/tag/${src.tag}";
license = licenses.asl20;
maintainers = [ ];
};
}