2021-04-08 16:26:57 +00:00
|
|
|
{ lib, buildPythonPackage, fetchFromGitHub, isPy27, pytestCheckHook, autoconf
|
|
|
|
, automake, cmake, gcc, libtool, perl, simplejson }:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "awslambdaric";
|
2021-08-25 08:27:29 +00:00
|
|
|
version = "1.2.2";
|
2021-04-08 16:26:57 +00:00
|
|
|
disabled = isPy27;
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "aws";
|
|
|
|
repo = "aws-lambda-python-runtime-interface-client";
|
2021-06-28 23:13:55 +00:00
|
|
|
rev = version;
|
2021-08-25 08:27:29 +00:00
|
|
|
sha256 = "1r4b4w5xhf6p4vs7yx89kighlqim9f96v2ryknmrnmblgr4kg0h1";
|
2021-04-08 16:26:57 +00:00
|
|
|
};
|
|
|
|
|
2021-08-08 23:34:03 +00:00
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace requirements/base.txt \
|
|
|
|
--replace 'simplejson==3' 'simplejson~=3'
|
|
|
|
'';
|
|
|
|
|
2021-04-08 16:26:57 +00:00
|
|
|
propagatedBuildInputs = [ simplejson ];
|
|
|
|
|
|
|
|
nativeBuildInputs = [ autoconf automake cmake libtool perl ];
|
|
|
|
|
|
|
|
buildInputs = [ gcc ];
|
|
|
|
|
|
|
|
dontUseCmakeConfigure = true;
|
|
|
|
|
|
|
|
checkInputs = [ pytestCheckHook ];
|
|
|
|
|
|
|
|
pythonImportsCheck = [ "awslambdaric" "runtime_client" ];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
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;
|
|
|
|
};
|
|
|
|
}
|