1{ lib
2, buildPythonPackage
3, fetchPypi
4, pytestCheckHook
5, libcst
6, google-api-core
7, google-cloud-storage
8, google-cloud-testutils
9, pandas
10, proto-plus
11, pytest-asyncio
12, mock
13}:
14
15buildPythonPackage rec {
16 pname = "google-cloud-automl";
17 version = "2.5.2";
18
19 src = fetchPypi {
20 inherit pname version;
21 sha256 = "4c759ae99979d9f94ed0bdfe4937f41c81634f934ec11d25eb089430781eafec";
22 };
23
24 propagatedBuildInputs = [
25 google-api-core
26 libcst
27 proto-plus
28 ];
29
30 checkInputs = [
31 google-cloud-storage
32 google-cloud-testutils
33 mock
34 pandas
35 pytest-asyncio
36 pytestCheckHook
37 ];
38
39 preCheck = ''
40 # do not shadow imports
41 rm -r google
42 '';
43
44 disabledTestPaths = [
45 # requires credentials
46 "tests/system/gapic/v1beta1/test_system_tables_client_v1.py"
47 ];
48
49 disabledTests = [
50 # requires credentials
51 "test_prediction_client_client_info"
52 ];
53
54 pythonImportsCheck = [
55 "google.cloud.automl"
56 "google.cloud.automl_v1"
57 "google.cloud.automl_v1beta1"
58 ];
59
60 meta = with lib; {
61 description = "Cloud AutoML API client library";
62 homepage = "https://github.com/googleapis/python-automl";
63 license = licenses.asl20;
64 maintainers = with maintainers; [ SuperSandro2000 ];
65 };
66}