2022-06-16 17:23:12 +00:00
|
|
|
{ stdenv
|
|
|
|
, lib
|
2020-04-24 23:36:52 +00:00
|
|
|
, buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
|
|
|
, mock
|
|
|
|
, parameterized
|
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";
|
2022-06-26 10:26:21 +00:00
|
|
|
version = "1.18.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}";
|
2022-06-26 10:26:21 +00:00
|
|
|
hash = "sha256-yAqGVZnnragi3+jaAGnkYNH/XtpH3bojXHmPCrANgJU=";
|
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
|
|
|
|
|
|
|
checkInputs = [
|
|
|
|
mock
|
|
|
|
parameterized
|
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"
|
|
|
|
# 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
|
|
|
broken = (stdenv.isLinux && stdenv.isAarch64);
|
|
|
|
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";
|
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|