python39Packages.awslambdaric: move depedency patching to right phase

This commit is contained in:
Sandro Jäckel 2021-08-08 06:44:13 +02:00
parent a40aefcafa
commit 240cf37b50
No known key found for this signature in database
GPG key ID: 3AF5A43A3EECC2E5

View file

@ -13,6 +13,11 @@ buildPythonPackage rec {
sha256 = "120qar8iaxj6dmnhjw1c40n2w06f1nyxy57dwh06xdiany698fg4";
};
postPatch = ''
substituteInPlace requirements/base.txt \
--replace 'simplejson==3' 'simplejson~=3'
'';
propagatedBuildInputs = [ simplejson ];
nativeBuildInputs = [ autoconf automake cmake libtool perl ];
@ -21,10 +26,6 @@ buildPythonPackage rec {
dontUseCmakeConfigure = true;
preBuild = ''
substituteInPlace requirements/base.txt --replace 'simplejson==3' 'simplejson~=3'
'';
checkInputs = [ pytestCheckHook ];
pythonImportsCheck = [ "awslambdaric" "runtime_client" ];