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, pythonOlder
14}:
15
16buildPythonPackage rec {
17 pname = "google-cloud-automl";
18 version = "2.8.3";
19 format = "setuptools";
20
21 disabled = pythonOlder "3.7";
22
23 src = fetchPypi {
24 inherit pname version;
25 hash = "sha256-aMkYgmx4TDGSW2/0KB7FTNUHUxtTaVpmeDiIWq7Z5lc=";
26 };
27
28 propagatedBuildInputs = [
29 google-api-core
30 libcst
31 proto-plus
32 ];
33
34 checkInputs = [
35 google-cloud-storage
36 google-cloud-testutils
37 mock
38 pandas
39 pytest-asyncio
40 pytestCheckHook
41 ];
42
43 preCheck = ''
44 # do not shadow imports
45 rm -r google
46 '';
47
48 disabledTestPaths = [
49 # requires credentials
50 "tests/system/gapic/v1beta1/test_system_tables_client_v1.py"
51 ];
52
53 disabledTests = [
54 # requires credentials
55 "test_prediction_client_client_info"
56 ];
57
58 pythonImportsCheck = [
59 "google.cloud.automl"
60 "google.cloud.automl_v1"
61 "google.cloud.automl_v1beta1"
62 ];
63
64 meta = with lib; {
65 description = "Cloud AutoML API client library";
66 homepage = "https://github.com/googleapis/python-automl";
67 license = licenses.asl20;
68 maintainers = with maintainers; [ SuperSandro2000 ];
69 };
70}