depot/third_party/nixpkgs/pkgs/development/python-modules/sagemaker/default.nix
Default email 81047829ea Project import generated by Copybara.
GitOrigin-RevId: 48d63e924a2666baf37f4f14a18f19347fbd54a2
2022-02-10 15:34:41 -05:00

61 lines
1.1 KiB
Nix

{ lib
, buildPythonPackage
, fetchPypi
, attrs
, boto3
, google-pasta
, importlib-metadata
, numpy
, protobuf
, protobuf3-to-dict
, smdebug-rulesconfig
, pandas
, pathos
, packaging
, pythonOlder
}:
buildPythonPackage rec {
pname = "sagemaker";
version = "2.75.1";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchPypi {
inherit pname version;
sha256 = "sha256-MN/F7TWaKsQpKMR7Pxx0Vam1+O+PFEJ/H5jLJh3zpe4=";
};
propagatedBuildInputs = [
attrs
boto3
google-pasta
importlib-metadata
numpy
packaging
pathos
protobuf
protobuf3-to-dict
smdebug-rulesconfig
pandas
];
postFixup = ''
[ "$($out/bin/sagemaker-upgrade-v2 --help 2>&1 | grep -cim1 'pandas failed to import')" -eq "0" ]
'';
doCheck = false;
pythonImportsCheck = [
"sagemaker"
"sagemaker.lineage.visualizer"
];
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 ];
};
}