Merge pull request #307098 from r-ryantm/auto-update/cilium-cli
[NixPkgs.git] / pkgs / development / python-modules / aws-lambda-builders / default.nix
blob9e32768ee18dc931b4ea8fffe089f4f5a52d83a3
1 { lib
2 , buildPythonPackage
3 , fetchFromGitHub
4 , mock
5 , parameterized
6 , pip
7 , pyelftools
8 , pytestCheckHook
9 , pythonOlder
10 , setuptools
11 , six
14 buildPythonPackage rec {
15   pname = "aws-lambda-builders";
16   version = "1.48.0";
17   pyproject = true;
19   disabled = pythonOlder "3.8";
21   src = fetchFromGitHub {
22     owner = "awslabs";
23     repo = "aws-lambda-builders";
24     rev = "refs/tags/v${version}";
25     hash = "sha256-g1f0OL41lvs8OLyLcBk6XJk9wZO/oWluUj5sUcXlUIE=";
26   };
28   postPatch = ''
29     substituteInPlace setup.py \
30       --replace-fail "version=read_version()," 'version="${version}",'
31   '';
33   build-system = [
34     setuptools
35   ];
37   dependencies = [
38     six
39   ];
41   nativeCheckInputs = [
42     mock
43     parameterized
44     pip
45     pyelftools
46     pytestCheckHook
47   ];
49   disabledTests = [
50     # CLI don't work in the sandbox
51     "test_run_hello_workflow"
52     # Don't tests integrations
53     "TestCustomMakeWorkflow"
54     "TestDotnet31"
55     "TestDotnet6"
56     "TestGoWorkflow"
57     "TestJavaGradle"
58     "TestJavaMaven"
59     "TestNodejsNpmWorkflow"
60     "TestNodejsNpmWorkflowWithEsbuild"
61     "TestPipRunner"
62     "TestPythonPipWorkflow"
63     "TestRubyWorkflow"
64     "TestRustCargo"
65     "test_with_mocks"
66     # Tests which are passing locally but not on Hydra
67     "test_copy_dependencies_action_1_multiple_files"
68     "test_move_dependencies_action_1_multiple_files"
69   ];
71   disabledTestPaths = [
72     # Dotnet binary needed
73     "tests/integration/workflows/dotnet_clipackage/test_dotnet.py"
74   ];
76   pythonImportsCheck = [
77     "aws_lambda_builders"
78   ];
80   meta = with lib; {
81     description = "Tool to compile, build and package AWS Lambda functions";
82     mainProgram = "lambda-builders";
83     homepage = "https://github.com/awslabs/aws-lambda-builders";
84     changelog = "https://github.com/aws/aws-lambda-builders/releases/tag/v${version}";
85     longDescription = ''
86       Lambda Builders is a Python library to compile, build and package
87       AWS Lambda functions for several runtimes & frameworks.
88     '';
89     license = licenses.asl20;
90     maintainers = with maintainers; [ dhkl ];
91   };