Merge pull request #139694 from austinbutler/awslambdaric-simplejson-patch

This commit is contained in:
Sandro 2021-09-28 20:29:48 +02:00 committed by GitHub
commit f68d7408c6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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'