1{ lib 2, buildPythonPackage 3, fetchPypi 4, google-api-core 5, google-cloud-storage 6, google-cloud-testutils 7, libcst 8, mock 9, pandas 10, proto-plus 11, protobuf 12, pytest-asyncio 13, pytestCheckHook 14, pythonOlder 15, setuptools 16}: 17 18buildPythonPackage rec { 19 pname = "google-cloud-automl"; 20 version = "2.11.4"; 21 pyproject = true; 22 23 disabled = pythonOlder "3.7"; 24 25 src = fetchPypi { 26 inherit pname version; 27 hash = "sha256-oUMXQWkwHMFI26hpe36mAyoh+bQogtyoDgTaBRactUU="; 28 }; 29 30 nativeBuildInputs = [ 31 setuptools 32 ]; 33 34 propagatedBuildInputs = [ 35 google-api-core 36 proto-plus 37 protobuf 38 ] ++ google-api-core.optional-dependencies.grpc; 39 40 passthru.optional-dependencies = { 41 libcst = [ 42 libcst 43 ]; 44 pandas = [ 45 pandas 46 ]; 47 storage = [ 48 google-cloud-storage 49 ]; 50 }; 51 52 nativeCheckInputs = [ 53 google-cloud-storage 54 google-cloud-testutils 55 mock 56 pandas 57 pytest-asyncio 58 pytestCheckHook 59 ]; 60 61 preCheck = '' 62 # do not shadow imports 63 rm -r google 64 ''; 65 66 disabledTests = [ 67 # Test requires credentials 68 "test_prediction_client_client_info" 69 # Test requires project ID 70 "test_list_models" 71 ]; 72 73 pythonImportsCheck = [ 74 "google.cloud.automl" 75 "google.cloud.automl_v1" 76 "google.cloud.automl_v1beta1" 77 ]; 78 79 meta = with lib; { 80 description = "Cloud AutoML API client library"; 81 homepage = "https://github.com/googleapis/google-cloud-python/tree/main/packages/google-cloud-automl"; 82 changelog = "https://github.com/googleapis/google-cloud-python/tree/google-cloud-automl-v${version}/packages/google-cloud-automl"; 83 license = licenses.asl20; 84 maintainers = with maintainers; [ ]; 85 }; 86}