1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 isPy27,
6 pytestCheckHook,
7 autoconf,
8 automake,
9 cmake,
10 gcc,
11 libtool,
12 parameterized,
13 perl,
14 setuptools,
15 simplejson,
16 snapshot-restore-py,
17}:
18buildPythonPackage rec {
19 pname = "awslambdaric";
20 version = "3.1.1";
21 pyproject = true;
22
23 disabled = isPy27;
24
25 src = fetchFromGitHub {
26 owner = "aws";
27 repo = "aws-lambda-python-runtime-interface-client";
28 tag = version;
29 sha256 = "sha256-pUVWd4zpmTygndPIy76uVk7+sLCmwQqulLaUI7B0fQc=";
30 };
31
32 propagatedBuildInputs = [
33 simplejson
34 snapshot-restore-py
35 ];
36
37 nativeBuildInputs = [
38 autoconf
39 automake
40 cmake
41 libtool
42 perl
43 setuptools
44 ];
45
46 buildInputs = [ gcc ];
47
48 dontUseCmakeConfigure = true;
49
50 nativeCheckInputs = [
51 parameterized
52 pytestCheckHook
53 ];
54
55 pythonImportsCheck = [
56 "awslambdaric"
57 "runtime_client"
58 ];
59
60 meta = with lib; {
61 description = "AWS Lambda Runtime Interface Client for Python";
62 homepage = "https://github.com/aws/aws-lambda-python-runtime-interface-client";
63 license = licenses.asl20;
64 maintainers = with maintainers; [ austinbutler ];
65 platforms = platforms.linux;
66 };
67}