Merge pull request #113978 from NixOS/sagemaker

pythonPackages.sagemaker: add pandas for analytical feature
This commit is contained in:
davidak
2021-02-24 13:15:22 +01:00
committed by GitHub

View File

@@ -9,6 +9,7 @@
, protobuf
, protobuf3-to-dict
, smdebug-rulesconfig
, pandas
}:
buildPythonPackage rec {
@@ -20,9 +21,10 @@ buildPythonPackage rec {
sha256 = "sha256-xQ1nt8FcjuoilzM5PbU8KHgirPyj9us+ykyjfgEqZhg=";
};
doCheck = false;
pythonImportsCheck = [ "sagemaker" ];
pythonImportsCheck = [
"sagemaker"
"sagemaker.lineage.visualizer"
];
propagatedBuildInputs = [
attrs
@@ -33,8 +35,15 @@ buildPythonPackage rec {
protobuf
protobuf3-to-dict
smdebug-rulesconfig
pandas
];
doCheck = false;
postFixup = ''
[ "$($out/bin/sagemaker-upgrade-v2 --help 2>&1 | grep -cim1 'pandas failed to import')" -eq "0" ]
'';
meta = with lib; {
description = "Library for training and deploying machine learning models on Amazon SageMaker";
homepage = "https://github.com/aws/sagemaker-python-sdk/";