nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix

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 ··· 28 27 hash = "sha256-hs71bIoByh5S1ncsku+y4X2i0yU65FknJE05lEmnru4="; 29 28 }; 30 29 30 + nativeBuildInputs = [ pythonRelaxDepsHook ]; 31 + pythonRelaxDeps = [ 32 + # FIXME: Remove when >= 2.111.0 33 + "attrs" 34 + "protobuf" 35 + ]; 36 + 31 37 propagatedBuildInputs = [ 32 38 attrs 33 39 boto3 ··· 48 40 smdebug-rulesconfig 49 41 pandas 50 42 ]; 51 - 52 - postPatch = '' 53 - substituteInPlace setup.py \ 54 - --replace "attrs==20.3.0" "attrs>=20.3.0" 55 - ''; 56 43 57 44 postFixup = '' 58 45 [ "$($out/bin/sagemaker-upgrade-v2 --help 2>&1 | grep -cim1 'pandas failed to import')" -eq "0" ]