2023-07-15 17:15:38 +00:00
|
|
|
{ lib
|
2020-04-24 23:36:52 +00:00
|
|
|
, buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
|
|
|
, mock
|
|
|
|
, parameterized
|
2023-08-22 20:05:09 +00:00
|
|
|
, pip
|
2022-06-16 17:23:12 +00:00
|
|
|
, pyelftools
|
|
|
|
, pytestCheckHook
|
2022-03-05 16:20:37 +00:00
|
|
|
, pythonOlder
|
2022-06-16 17:23:12 +00:00
|
|
|
, six
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "aws-lambda-builders";
|
2024-01-02 11:29:13 +00:00
|
|
|
version = "1.44.0";
|
2022-03-05 16:20:37 +00:00
|
|
|
format = "setuptools";
|
|
|
|
|
|
|
|
disabled = pythonOlder "3.7";
|
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-01-02 11:29:13 +00:00
|
|
|
hash = "sha256-97NhNlYaxBwUdBmg6qzpGdtGyE86rO/PXl9pDfyitbI=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2023-10-09 19:29:22 +00:00
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace setup.py \
|
|
|
|
--replace "version=read_version()," 'version="${version}",'
|
|
|
|
'';
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
six
|
2022-03-05 16:20:37 +00:00
|
|
|
];
|
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"
|
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"
|
|
|
|
];
|
|
|
|
|
|
|
|
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";
|
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 ];
|
|
|
|
};
|
|
|
|
}
|