python3Packages.sagemaker: disable on older Python releases

This commit is contained in:
Fabian Affolter 2022-01-23 10:48:22 +01:00 committed by GitHub
parent 7606a4ddac
commit 4c5f5d5b3a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -12,22 +12,21 @@
, pandas
, pathos
, packaging
, pythonOlder
}:
buildPythonPackage rec {
pname = "sagemaker";
version = "2.73.0";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchPypi {
inherit pname version;
sha256 = "6735874a29aefc1e989a132a2e24945e5b0d057d8b297a2da695cf8421a78810";
};
pythonImportsCheck = [
"sagemaker"
"sagemaker.lineage.visualizer"
];
propagatedBuildInputs = [
attrs
boto3
@ -42,12 +41,17 @@ buildPythonPackage rec {
pandas
];
doCheck = false;
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/";