python3Packages.sagamaker: relax protobuf and attrs

oxalica 53dfc257 16b4c7f0

+8 -5
+8 -5
pkgs/development/python-modules/sagemaker/default.nix
··· 1 1 { lib 2 2 , buildPythonPackage 3 3 , fetchPypi 4 + , pythonRelaxDepsHook 4 5 , attrs 5 6 , boto3 6 7 , google-pasta ··· 27 28 hash = "sha256-hs71bIoByh5S1ncsku+y4X2i0yU65FknJE05lEmnru4="; 28 29 }; 29 30 31 + nativeBuildInputs = [ pythonRelaxDepsHook ]; 32 + pythonRelaxDeps = [ 33 + # FIXME: Remove when >= 2.111.0 34 + "attrs" 35 + "protobuf" 36 + ]; 37 + 30 38 propagatedBuildInputs = [ 31 39 attrs 32 40 boto3 ··· 40 48 smdebug-rulesconfig 41 49 pandas 42 50 ]; 43 - 44 - postPatch = '' 45 - substituteInPlace setup.py \ 46 - --replace "attrs==20.3.0" "attrs>=20.3.0" 47 - ''; 48 51 49 52 postFixup = '' 50 53 [ "$($out/bin/sagemaker-upgrade-v2 --help 2>&1 | grep -cim1 'pandas failed to import')" -eq "0" ]