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-02-22 21:28:39 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "sagemaker";
|
2021-03-12 07:09:13 +00:00
|
|
|
version = "2.29.1";
|
2021-02-22 21:28:39 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2021-03-12 07:09:13 +00:00
|
|
|
sha256 = "sha256-5hFX6tVLolPxC/40ssdr0XYp3Vn3fVvBWGi7Utp6/k8=";
|
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
|
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|