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 15:17:10 +01:00
|
|
|
, pathos
|
2021-03-31 16:36:22 +01:00
|
|
|
, packaging
|
2022-01-23 09:48:22 +00:00
|
|
|
, pythonOlder
|
2021-02-21 22:33:18 +00:00
|
|
|
}:
|
2021-02-16 20:55:57 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "sagemaker";
|
2022-02-10 16:49:54 +00:00
|
|
|
version = "2.75.1";
|
2022-01-23 09:48:22 +00:00
|
|
|
format = "setuptools";
|
|
|
|
|
|
|
|
disabled = pythonOlder "3.7";
|
2021-02-16 20:55:57 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2022-02-10 16:49:54 +00:00
|
|
|
sha256 = "sha256-MN/F7TWaKsQpKMR7Pxx0Vam1+O+PFEJ/H5jLJh3zpe4=";
|
2021-02-16 20:55:57 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
attrs
|
|
|
|
boto3
|
|
|
|
google-pasta
|
|
|
|
importlib-metadata
|
|
|
|
numpy
|
2021-03-31 16:36:22 +01:00
|
|
|
packaging
|
2021-04-26 15:17:10 +01: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
|
|
|
postFixup = ''
|
|
|
|
[ "$($out/bin/sagemaker-upgrade-v2 --help 2>&1 | grep -cim1 'pandas failed to import')" -eq "0" ]
|
|
|
|
'';
|
|
|
|
|
2022-01-23 09:48:22 +00:00
|
|
|
doCheck = false;
|
|
|
|
|
|
|
|
pythonImportsCheck = [
|
|
|
|
"sagemaker"
|
|
|
|
"sagemaker.lineage.visualizer"
|
|
|
|
];
|
|
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|