nixpkgs/pkgs/development/python-modules/sagemaker/default.nix

58 lines
1.1 KiB
Nix
Raw Normal View History

{ lib
, buildPythonPackage
, fetchPypi
, attrs
, boto3
, google-pasta
, importlib-metadata
, numpy
, protobuf
, protobuf3-to-dict
, smdebug-rulesconfig
, pandas
2021-04-26 14:17:10 +00:00
, pathos
, packaging
}:
buildPythonPackage rec {
pname = "sagemaker";
2021-04-26 14:17:10 +00:00
version = "2.38.0";
src = fetchPypi {
inherit pname version;
2021-04-26 14:17:10 +00:00
sha256 = "sha256-7cIGr49fKI0zQmX4/9v/gW5yB4kfeQJ3H/Vvgl9CKuY=";
};
pythonImportsCheck = [
"sagemaker"
"sagemaker.lineage.visualizer"
];
propagatedBuildInputs = [
attrs
boto3
google-pasta
importlib-metadata
numpy
packaging
2021-04-26 14:17:10 +00:00
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 ];
};
}