diff --git a/pkgs/development/python-modules/awslambdaric/default.nix b/pkgs/development/python-modules/awslambdaric/default.nix index 1826291da502..2ccba6995ade 100644 --- a/pkgs/development/python-modules/awslambdaric/default.nix +++ b/pkgs/development/python-modules/awslambdaric/default.nix @@ -1,5 +1,17 @@ -{ lib, buildPythonPackage, fetchFromGitHub, isPy27, pytestCheckHook, autoconf -, automake, cmake, gcc, libtool, perl, simplejson }: +{ lib +, buildPythonPackage +, fetchFromGitHub +, fetchpatch +, isPy27 +, pytestCheckHook +, autoconf +, automake +, cmake +, gcc +, libtool +, perl +, simplejson +}: buildPythonPackage rec { pname = "awslambdaric"; @@ -13,6 +25,14 @@ buildPythonPackage rec { sha256 = "1r4b4w5xhf6p4vs7yx89kighlqim9f96v2ryknmrnmblgr4kg0h1"; }; + patches = [ + (fetchpatch { + # https://github.com/aws/aws-lambda-python-runtime-interface-client/pull/58 + url = "https://github.com/aws/aws-lambda-python-runtime-interface-client/commit/162c3c0051bb9daa92e4a2a4af7e90aea60ee405.patch"; + sha256 = "09qqq5x6npc9jw2qbhzifqn5sqiby4smiin1aw30psmlp21fv7j8"; + }) + ]; + postPatch = '' substituteInPlace requirements/base.txt \ --replace 'simplejson==3' 'simplejson~=3'