diff --git a/pkgs/development/python-modules/sagemaker-core/default.nix b/pkgs/development/python-modules/sagemaker-core/default.nix index df2330a5b97d..97622ac59320 100644 --- a/pkgs/development/python-modules/sagemaker-core/default.nix +++ b/pkgs/development/python-modules/sagemaker-core/default.nix @@ -21,6 +21,9 @@ pandas, pylint, pytest, + + # tests + pytestCheckHook, }: buildPythonPackage rec { @@ -69,12 +72,20 @@ buildPythonPackage rec { "sagemaker_core" ]; - # Only a single test which fails with: - # ValueError: Must setup local AWS configuration with a region supported by SageMaker. - doCheck = false; + nativeCheckInputs = [ + pytestCheckHook + ] ++ lib.flatten (lib.attrValues optional-dependencies); + + disabledTestPaths = [ + # Tries to import deprecated `sklearn` + "integ/test_codegen.py" + + # botocore.exceptions.NoRegionError: You must specify a region + "tst/generated/test_logs.py" + ]; meta = { - description = "Python SDK designed to provide an object-oriented interface for interacting with Amazon SageMaker resources"; + description = "Python object-oriented interface for interacting with Amazon SageMaker resources"; homepage = "https://github.com/aws/sagemaker-core"; changelog = "https://github.com/aws/sagemaker-core/blob/v${version}/CHANGELOG.md"; license = lib.licenses.asl20;