@@ -1,5 +1,17 @@
1−{ lib, buildPythonPackage, fetchFromGitHub, isPy27, pytestCheckHook, autoconf
2−, automake, cmake, gcc, libtool, perl, simplejson }:
1+{ lib
2+, buildPythonPackage
3+, fetchFromGitHub
4+, fetchpatch
5+, isPy27
6+, pytestCheckHook
7+, autoconf
8+, automake
9+, cmake
10+, gcc
11+, libtool
12+, perl
13+, simplejson
14+}:
315
416buildPythonPackage rec {
517 pname = "awslambdaric";
@@ -13,6 +25,14 @@ buildPythonPackage rec {
1325 sha256 = "1r4b4w5xhf6p4vs7yx89kighlqim9f96v2ryknmrnmblgr4kg0h1";
1426 };
1527
28+ patches = [
29+ (fetchpatch {
30+ # https://github.com/aws/aws-lambda-python-runtime-interface-client/pull/58
31+ url = "https://github.com/aws/aws-lambda-python-runtime-interface-client/commit/162c3c0051bb9daa92e4a2a4af7e90aea60ee405.patch";
32+ sha256 = "09qqq5x6npc9jw2qbhzifqn5sqiby4smiin1aw30psmlp21fv7j8";
33+ })
34+ ];
35+
1636 postPatch = ''
1737 substituteInPlace requirements/base.txt \
1838 --replace 'simplejson==3' 'simplejson~=3'