Merge pull request #173767 from fabaff/sagemaker-fix

python310Packages.sagemaker: 2.82.0 -> 2.91.1
main
Robert Scott 2 years ago committed by GitHub
commit 3a574bf307
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 9
      pkgs/development/python-modules/sagemaker/default.nix

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

Loading…
Cancel
Save