2022-05-29 20:45:48 +00:00
|
|
|
{
|
|
|
|
stdenv,
|
|
|
|
lib,
|
2021-09-28 06:20:53 +00:00
|
|
|
buildPythonPackage,
|
|
|
|
fetchFromGitHub,
|
|
|
|
isPy27,
|
|
|
|
pytestCheckHook,
|
2024-01-10 09:49:28 +00:00
|
|
|
autoconf271,
|
2021-09-28 06:20:53 +00:00
|
|
|
automake,
|
|
|
|
cmake,
|
|
|
|
gcc,
|
|
|
|
libtool,
|
2024-08-13 20:12:20 +00:00
|
|
|
parameterized,
|
2021-09-28 06:20:53 +00:00
|
|
|
perl,
|
2023-12-02 22:59:51 +00:00
|
|
|
setuptools,
|
2021-09-28 06:20:53 +00:00
|
|
|
simplejson,
|
|
|
|
}:
|
2021-04-08 11:10:16 +00:00
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "awslambdaric";
|
2024-09-28 02:35:49 +00:00
|
|
|
version = "2.2.1";
|
2023-12-02 22:59:51 +00:00
|
|
|
pyproject = true;
|
|
|
|
|
2021-04-08 11:10:16 +00:00
|
|
|
disabled = isPy27;
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "aws";
|
|
|
|
repo = "aws-lambda-python-runtime-interface-client";
|
2023-09-15 12:05:49 +00:00
|
|
|
rev = "refs/tags/${version}";
|
2024-09-28 02:35:49 +00:00
|
|
|
sha256 = "sha256-IA2Kx4+U0+8lPl9TTTZC46Y3WhSUb5HR5Hr9QZSJIDU=";
|
2021-04-08 11:10:16 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [ simplejson ];
|
|
|
|
|
2024-01-10 09:49:28 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
autoconf271
|
|
|
|
automake
|
|
|
|
cmake
|
|
|
|
libtool
|
|
|
|
perl
|
|
|
|
setuptools
|
|
|
|
];
|
2021-04-08 11:10:16 +00:00
|
|
|
|
|
|
|
buildInputs = [ gcc ];
|
|
|
|
|
|
|
|
dontUseCmakeConfigure = true;
|
|
|
|
|
2024-08-13 20:12:20 +00:00
|
|
|
nativeCheckInputs = [
|
|
|
|
parameterized
|
|
|
|
pytestCheckHook
|
2022-07-12 10:31:23 +00:00
|
|
|
];
|
|
|
|
|
2021-04-08 11:10:16 +00:00
|
|
|
pythonImportsCheck = [
|
|
|
|
"awslambdaric"
|
|
|
|
"runtime_client"
|
|
|
|
];
|
|
|
|
|
|
|
|
meta = with lib; {
|
2024-08-13 20:12:20 +00:00
|
|
|
broken = stdenv.hostPlatform.isLinux && stdenv.hostPlatform.isAarch64;
|
2021-04-08 11:10:16 +00:00
|
|
|
description = "AWS Lambda Runtime Interface Client for Python";
|
|
|
|
homepage = "https://github.com/aws/aws-lambda-python-runtime-interface-client";
|
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = with maintainers; [ austinbutler ];
|
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|