diff options
Diffstat (limited to 'nixpkgs/pkgs/development/python-modules/sagemaker/default.nix')
-rw-r--r-- | nixpkgs/pkgs/development/python-modules/sagemaker/default.nix | 55 |
1 files changed, 55 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/development/python-modules/sagemaker/default.nix b/nixpkgs/pkgs/development/python-modules/sagemaker/default.nix new file mode 100644 index 000000000000..fc675279a40a --- /dev/null +++ b/nixpkgs/pkgs/development/python-modules/sagemaker/default.nix @@ -0,0 +1,55 @@ +{ lib +, buildPythonPackage +, fetchPypi +, attrs +, boto3 +, google-pasta +, importlib-metadata +, numpy +, protobuf +, protobuf3-to-dict +, smdebug-rulesconfig +, pandas +, packaging +}: + +buildPythonPackage rec { + pname = "sagemaker"; + version = "2.33.0"; + + src = fetchPypi { + inherit pname version; + sha256 = "sha256-0l8xwZ10zQb+LnV/hjYoSSgN/TGpVdzdXeSfnEyf0J0="; + }; + + 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 ]; + }; +} |