be14b713bb
GitOrigin-RevId: e5cc06a1e806070693add4f231060a62b962fc44
55 lines
1 KiB
Nix
55 lines
1 KiB
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchPypi
|
|
, attrs
|
|
, boto3
|
|
, google-pasta
|
|
, importlib-metadata
|
|
, numpy
|
|
, protobuf
|
|
, protobuf3-to-dict
|
|
, smdebug-rulesconfig
|
|
, pandas
|
|
, packaging
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "sagemaker";
|
|
version = "2.35.0";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
sha256 = "sha256-12YYUZbctM6oRaC7Sr/hOghAM+s/Cdm5XWHaVU5Gg6Q=";
|
|
};
|
|
|
|
pythonImportsCheck = [
|
|
"sagemaker"
|
|
"sagemaker.lineage.visualizer"
|
|
];
|
|
|
|
propagatedBuildInputs = [
|
|
attrs
|
|
boto3
|
|
google-pasta
|
|
importlib-metadata
|
|
numpy
|
|
packaging
|
|
protobuf
|
|
protobuf3-to-dict
|
|
smdebug-rulesconfig
|
|
pandas
|
|
];
|
|
|
|
doCheck = false;
|
|
|
|
postFixup = ''
|
|
[ "$($out/bin/sagemaker-upgrade-v2 --help 2>&1 | grep -cim1 'pandas failed to import')" -eq "0" ]
|
|
'';
|
|
|
|
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 ];
|
|
};
|
|
}
|