depot/third_party/nixpkgs/pkgs/development/python-modules/awslambdaric/default.nix
Default email 159e378cbb Project import generated by Copybara.
GitOrigin-RevId: c04d5652cfa9742b1d519688f65d1bbccea9eb7e
2024-09-19 17:19:46 +03:00

65 lines
1.2 KiB
Nix

{
stdenv,
lib,
buildPythonPackage,
fetchFromGitHub,
isPy27,
pytestCheckHook,
autoconf271,
automake,
cmake,
gcc,
libtool,
parameterized,
perl,
setuptools,
simplejson,
}:
buildPythonPackage rec {
pname = "awslambdaric";
version = "2.1.0";
pyproject = true;
disabled = isPy27;
src = fetchFromGitHub {
owner = "aws";
repo = "aws-lambda-python-runtime-interface-client";
rev = "refs/tags/${version}";
sha256 = "sha256-FHZ7ZTCOzElW/DM07TScp6bfOOFe4b307q/ALVX1fWQ=";
};
propagatedBuildInputs = [ simplejson ];
nativeBuildInputs = [
autoconf271
automake
cmake
libtool
perl
setuptools
];
buildInputs = [ gcc ];
dontUseCmakeConfigure = true;
nativeCheckInputs = [
parameterized
pytestCheckHook
];
pythonImportsCheck = [
"awslambdaric"
"runtime_client"
];
meta = with lib; {
broken = stdenv.isLinux && stdenv.isAarch64;
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;
};
}