2c76a4cb41
GitOrigin-RevId: c757e9bd77b16ca2e03c89bf8bc9ecb28e0c06ad
80 lines
1.8 KiB
Nix
80 lines
1.8 KiB
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchFromGitHub
|
|
, mock
|
|
, parameterized
|
|
, pip
|
|
, pyelftools
|
|
, pytestCheckHook
|
|
, pythonOlder
|
|
, six
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "aws-lambda-builders";
|
|
version = "1.41.0";
|
|
format = "setuptools";
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "awslabs";
|
|
repo = "aws-lambda-builders";
|
|
rev = "refs/tags/v${version}";
|
|
hash = "sha256-Uxf52UzzCqXFFnQD1DwcSy3ylY+rYq6qbI5XK5JiVto=";
|
|
};
|
|
|
|
postPatch = ''
|
|
substituteInPlace setup.py \
|
|
--replace "version=read_version()," 'version="${version}",'
|
|
'';
|
|
|
|
propagatedBuildInputs = [
|
|
six
|
|
];
|
|
|
|
nativeCheckInputs = [
|
|
mock
|
|
parameterized
|
|
pip
|
|
pyelftools
|
|
pytestCheckHook
|
|
];
|
|
|
|
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"
|
|
"TestRustCargo"
|
|
# 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"
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = "Tool to compile, build and package AWS Lambda functions";
|
|
homepage = "https://github.com/awslabs/aws-lambda-builders";
|
|
changelog = "https://github.com/aws/aws-lambda-builders/releases/tag/v${version}";
|
|
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 ];
|
|
};
|
|
}
|