nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 mock,
6 parameterized,
7 pip,
8 pyelftools,
9 pytestCheckHook,
10 setuptools,
11 six,
12}:
13
14buildPythonPackage rec {
15 pname = "aws-lambda-builders";
16 version = "1.61.0";
17 pyproject = true;
18
19 src = fetchFromGitHub {
20 owner = "awslabs";
21 repo = "aws-lambda-builders";
22 tag = "v${version}";
23 hash = "sha256-NdVZrc6996dlV0jSWuZH/dLQdJnXO+BQb8hk3G0oXmw=";
24 };
25
26 postPatch = ''
27 substituteInPlace setup.py \
28 --replace-fail "version=read_version()," 'version="${version}",'
29 '';
30
31 build-system = [ setuptools ];
32
33 dependencies = [ six ];
34
35 nativeCheckInputs = [
36 mock
37 parameterized
38 pip
39 pyelftools
40 pytestCheckHook
41 ];
42
43 disabledTests = [
44 # CLI don't work in the sandbox
45 "test_run_hello_workflow"
46 # Don't tests integrations
47 "TestCustomMakeWorkflow"
48 "TestDotnet31"
49 "TestDotnet6"
50 "TestGoWorkflow"
51 "TestJavaGradle"
52 "TestJavaMaven"
53 "TestNodejsNpmWorkflow"
54 "TestNodejsNpmWorkflowWithEsbuild"
55 "TestPipRunner"
56 "TestPythonPipWorkflow"
57 "TestRubyWorkflow"
58 "TestRustCargo"
59 "test_with_mocks"
60 # Tests which are passing locally but not on Hydra
61 "test_copy_dependencies_action_1_multiple_files"
62 "test_move_dependencies_action_1_multiple_files"
63 ];
64
65 disabledTestPaths = [
66 # Dotnet binary needed
67 "tests/integration/workflows/dotnet_clipackage/test_dotnet.py"
68 ];
69
70 pythonImportsCheck = [ "aws_lambda_builders" ];
71
72 meta = {
73 description = "Tool to compile, build and package AWS Lambda functions";
74 mainProgram = "lambda-builders";
75 homepage = "https://github.com/awslabs/aws-lambda-builders";
76 changelog = "https://github.com/aws/aws-lambda-builders/releases/tag/${src.tag}";
77 longDescription = ''
78 Lambda Builders is a Python library to compile, build and package
79 AWS Lambda functions for several runtimes & frameworks.
80 '';
81 license = lib.licenses.asl20;
82 maintainers = with lib.maintainers; [ dhkl ];
83 };
84}