2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchFromGitHub,
|
|
|
|
mock,
|
|
|
|
parameterized,
|
|
|
|
pip,
|
|
|
|
pyelftools,
|
|
|
|
pytestCheckHook,
|
|
|
|
pythonOlder,
|
|
|
|
setuptools,
|
|
|
|
six,
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "aws-lambda-builders";
|
2024-06-05 15:53:02 +00:00
|
|
|
version = "1.50.0";
|
2024-04-21 15:54:59 +00:00
|
|
|
pyproject = true;
|
2022-03-05 16:20:37 +00:00
|
|
|
|
2024-04-21 15:54:59 +00:00
|
|
|
disabled = pythonOlder "3.8";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "awslabs";
|
|
|
|
repo = "aws-lambda-builders";
|
2022-04-27 09:35:20 +00:00
|
|
|
rev = "refs/tags/v${version}";
|
2024-06-05 15:53:02 +00:00
|
|
|
hash = "sha256-GXpyO+Qd6NP5yxWn1kw34x+P5uyR0rcNlzwivT6eHdE=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2023-10-09 19:29:22 +00:00
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace setup.py \
|
2024-04-21 15:54:59 +00:00
|
|
|
--replace-fail "version=read_version()," 'version="${version}",'
|
2023-10-09 19:29:22 +00:00
|
|
|
'';
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
build-system = [ setuptools ];
|
2024-04-21 15:54:59 +00:00
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
dependencies = [ six ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [
|
2020-04-24 23:36:52 +00:00
|
|
|
mock
|
|
|
|
parameterized
|
2023-08-22 20:05:09 +00:00
|
|
|
pip
|
2022-06-16 17:23:12 +00:00
|
|
|
pyelftools
|
|
|
|
pytestCheckHook
|
2020-04-24 23:36:52 +00:00
|
|
|
];
|
|
|
|
|
2022-06-16 17:23:12 +00:00
|
|
|
disabledTests = [
|
|
|
|
# CLI don't work in the sandbox
|
|
|
|
"test_run_hello_workflow"
|
|
|
|
# Don't tests integrations
|
|
|
|
"TestCustomMakeWorkflow"
|
|
|
|
"TestDotnet31"
|
|
|
|
"TestDotnet6"
|
|
|
|
"TestGoWorkflow"
|
|
|
|
"TestJavaGradle"
|
|
|
|
"TestJavaMaven"
|
|
|
|
"TestNodejsNpmWorkflow"
|
|
|
|
"TestNodejsNpmWorkflowWithEsbuild"
|
|
|
|
"TestPipRunner"
|
|
|
|
"TestPythonPipWorkflow"
|
|
|
|
"TestRubyWorkflow"
|
2023-03-24 00:07:29 +00:00
|
|
|
"TestRustCargo"
|
2024-04-21 15:54:59 +00:00
|
|
|
"test_with_mocks"
|
2022-06-16 17:23:12 +00:00
|
|
|
# Tests which are passing locally but not on Hydra
|
|
|
|
"test_copy_dependencies_action_1_multiple_files"
|
|
|
|
"test_move_dependencies_action_1_multiple_files"
|
|
|
|
];
|
|
|
|
|
2024-04-21 15:54:59 +00:00
|
|
|
disabledTestPaths = [
|
|
|
|
# Dotnet binary needed
|
|
|
|
"tests/integration/workflows/dotnet_clipackage/test_dotnet.py"
|
|
|
|
];
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
pythonImportsCheck = [ "aws_lambda_builders" ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
2022-06-16 17:23:12 +00:00
|
|
|
description = "Tool to compile, build and package AWS Lambda functions";
|
2024-04-21 15:54:59 +00:00
|
|
|
mainProgram = "lambda-builders";
|
2020-04-24 23:36:52 +00:00
|
|
|
homepage = "https://github.com/awslabs/aws-lambda-builders";
|
2022-12-02 08:20:57 +00:00
|
|
|
changelog = "https://github.com/aws/aws-lambda-builders/releases/tag/v${version}";
|
2020-04-24 23:36:52 +00:00
|
|
|
longDescription = ''
|
|
|
|
Lambda Builders is a Python library to compile, build and package
|
|
|
|
AWS Lambda functions for several runtimes & frameworks.
|
|
|
|
'';
|
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = with maintainers; [ dhkl ];
|
|
|
|
};
|
|
|
|
}
|