2021-02-22 21:28:39 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, attrs
|
|
|
|
, boto3
|
|
|
|
, google-pasta
|
|
|
|
, importlib-metadata
|
|
|
|
, numpy
|
|
|
|
, protobuf
|
|
|
|
, protobuf3-to-dict
|
|
|
|
, smdebug-rulesconfig
|
2021-02-24 18:30:23 +00:00
|
|
|
, pandas
|
2021-04-26 19:14:03 +00:00
|
|
|
, pathos
|
2021-04-05 15:23:46 +00:00
|
|
|
, packaging
|
2021-02-22 21:28:39 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "sagemaker";
|
2021-12-06 16:07:01 +00:00
|
|
|
version = "2.63.1";
|
2021-02-22 21:28:39 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2021-12-06 16:07:01 +00:00
|
|
|
sha256 = "924847e9793b76d188049718aabbcad975296bb267812ad18e0279e7af0cb748";
|
2021-02-22 21:28:39 +00:00
|
|
|
};
|
|
|
|
|
2021-02-24 18:30:23 +00:00
|
|
|
pythonImportsCheck = [
|
|
|
|
"sagemaker"
|
|
|
|
"sagemaker.lineage.visualizer"
|
|
|
|
];
|
2021-02-22 21:28:39 +00:00
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
attrs
|
|
|
|
boto3
|
|
|
|
google-pasta
|
|
|
|
importlib-metadata
|
|
|
|
numpy
|
2021-04-05 15:23:46 +00:00
|
|
|
packaging
|
2021-04-26 19:14:03 +00:00
|
|
|
pathos
|
2021-02-22 21:28:39 +00:00
|
|
|
protobuf
|
|
|
|
protobuf3-to-dict
|
|
|
|
smdebug-rulesconfig
|
2021-02-24 18:30:23 +00:00
|
|
|
pandas
|
2021-02-22 21:28:39 +00:00
|
|
|
];
|
|
|
|
|
2021-02-24 18:30:23 +00:00
|
|
|
doCheck = false;
|
|
|
|
|
|
|
|
postFixup = ''
|
|
|
|
[ "$($out/bin/sagemaker-upgrade-v2 --help 2>&1 | grep -cim1 'pandas failed to import')" -eq "0" ]
|
|
|
|
'';
|
|
|
|
|
2021-02-22 21:28:39 +00:00
|
|
|
meta = with lib; {
|
|
|
|
description = "Library for training and deploying machine learning models on Amazon SageMaker";
|
|
|
|
homepage = "https://github.com/aws/sagemaker-python-sdk/";
|
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = with maintainers; [ nequissimus ];
|
|
|
|
};
|
|
|
|
}
|