Merge pull request #173767 from fabaff/sagemaker-fix

python310Packages.sagemaker: 2.82.0 -> 2.91.1
This commit is contained in:
Robert Scott 2022-05-20 21:51:57 +01:00 committed by GitHub
commit 3a574bf307
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -17,14 +17,14 @@
buildPythonPackage rec {
pname = "sagemaker";
version = "2.82.0";
version = "2.91.1";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchPypi {
inherit pname version;
sha256 = "sha256-cQe4b5XpmaC9ZTanI9LKNTLw1HycxqaDCOuLfw/vBRY=";
hash = "sha256-DP6bdakmOX2qiqbkz/D4Q/aexjy7dTDXlDKvnCf3SaA=";
};
propagatedBuildInputs = [
@ -41,6 +41,11 @@ buildPythonPackage rec {
pandas
];
postPatch = ''
substituteInPlace setup.py \
--replace "attrs==20.3.0" "attrs>=20.3.0"
'';
postFixup = ''
[ "$($out/bin/sagemaker-upgrade-v2 --help 2>&1 | grep -cim1 'pandas failed to import')" -eq "0" ]
'';