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-10-04 12:37:57 +00:00
|
|
|
version = "2.59.6";
|
2021-02-22 21:28:39 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2021-10-04 12:37:57 +00:00
|
|
|
sha256 = "4bf7a6c541dbb0d29af9a7fba0159946f67974fbc8e76d2587e601d59f83fd45";
|
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 ];
|
|
|
|
};
|
|
|
|
}
|