nixpkgs/pkgs/development/python-modules/sagemaker/default.nix
2021-11-30 18:52:19 -08:00

57 lines
1.1 KiB
Nix

{ lib
, buildPythonPackage
, fetchPypi
, attrs
, boto3
, google-pasta
, importlib-metadata
, numpy
, protobuf
, protobuf3-to-dict
, smdebug-rulesconfig
, pandas
, pathos
, packaging
}:
buildPythonPackage rec {
pname = "sagemaker";
version = "2.69.0";
src = fetchPypi {
inherit pname version;
sha256 = "8e9051a44a82be07e32d83cfc12d724fd1cb76f83ade34cd9e69c45a8d37c676";
};
pythonImportsCheck = [
"sagemaker"
"sagemaker.lineage.visualizer"
];
propagatedBuildInputs = [
attrs
boto3
google-pasta
importlib-metadata
numpy
packaging
pathos
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 ];
};
}