2021-02-21 22:33:18 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, attrs
|
|
|
|
, boto3
|
|
|
|
, google-pasta
|
|
|
|
, importlib-metadata
|
|
|
|
, numpy
|
|
|
|
, protobuf
|
|
|
|
, protobuf3-to-dict
|
|
|
|
, smdebug-rulesconfig
|
2021-02-22 07:39:00 +00:00
|
|
|
, pandas
|
2021-04-26 14:17:10 +00:00
|
|
|
, pathos
|
2021-03-31 15:36:22 +00:00
|
|
|
, packaging
|
2021-02-21 22:33:18 +00:00
|
|
|
}:
|
2021-02-16 20:55:57 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "sagemaker";
|
2021-04-26 14:17:10 +00:00
|
|
|
version = "2.38.0";
|
2021-02-16 20:55:57 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2021-04-26 14:17:10 +00:00
|
|
|
sha256 = "sha256-7cIGr49fKI0zQmX4/9v/gW5yB4kfeQJ3H/Vvgl9CKuY=";
|
2021-02-16 20:55:57 +00:00
|
|
|
};
|
|
|
|
|
2021-02-22 07:39:00 +00:00
|
|
|
pythonImportsCheck = [
|
|
|
|
"sagemaker"
|
|
|
|
"sagemaker.lineage.visualizer"
|
|
|
|
];
|
2021-02-16 20:55:57 +00:00
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
attrs
|
|
|
|
boto3
|
|
|
|
google-pasta
|
|
|
|
importlib-metadata
|
|
|
|
numpy
|
2021-03-31 15:36:22 +00:00
|
|
|
packaging
|
2021-04-26 14:17:10 +00:00
|
|
|
pathos
|
2021-02-16 20:55:57 +00:00
|
|
|
protobuf
|
|
|
|
protobuf3-to-dict
|
|
|
|
smdebug-rulesconfig
|
2021-02-22 07:39:00 +00:00
|
|
|
pandas
|
2021-02-16 20:55:57 +00:00
|
|
|
];
|
|
|
|
|
2021-02-22 07:39:00 +00:00
|
|
|
doCheck = false;
|
|
|
|
|
|
|
|
postFixup = ''
|
|
|
|
[ "$($out/bin/sagemaker-upgrade-v2 --help 2>&1 | grep -cim1 'pandas failed to import')" -eq "0" ]
|
|
|
|
'';
|
|
|
|
|
2021-02-16 20:55:57 +00:00
|
|
|
meta = with lib; {
|
2021-02-21 21:01:57 +00:00
|
|
|
description = "Library for training and deploying machine learning models on Amazon SageMaker";
|
2021-02-16 20:55:57 +00:00
|
|
|
homepage = "https://github.com/aws/sagemaker-python-sdk/";
|
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = with maintainers; [ nequissimus ];
|
|
|
|
};
|
|
|
|
}
|