evcc: 0.131.4 -> 0.131.5
[NixPkgs.git] / pkgs / development / python-modules / google-cloud-automl / default.nix
blobe78652373f0cafc443e69d03d6dcbf0c518b6dba
2   lib,
3   buildPythonPackage,
4   fetchPypi,
5   google-api-core,
6   google-cloud-storage,
7   google-cloud-testutils,
8   libcst,
9   mock,
10   pandas,
11   proto-plus,
12   protobuf,
13   pytest-asyncio,
14   pytestCheckHook,
15   pythonOlder,
16   setuptools,
19 buildPythonPackage rec {
20   pname = "google-cloud-automl";
21   version = "2.14.0";
22   pyproject = true;
24   disabled = pythonOlder "3.7";
26   src = fetchPypi {
27     pname = "google_cloud_automl";
28     inherit version;
29     hash = "sha256-CpVwnxU1DAdU7VGY1LjkOlv5ki2ZxlA0sWd9vsR5rkI=";
30   };
32   build-system = [ setuptools ];
34   dependencies = [
35     google-api-core
36     proto-plus
37     protobuf
38   ] ++ google-api-core.optional-dependencies.grpc;
40   optional-dependencies = {
41     libcst = [ libcst ];
42     pandas = [ pandas ];
43     storage = [ google-cloud-storage ];
44   };
46   nativeCheckInputs = [
47     google-cloud-storage
48     google-cloud-testutils
49     mock
50     pandas
51     pytest-asyncio
52     pytestCheckHook
53   ];
55   preCheck = ''
56     # do not shadow imports
57     rm -r google
58   '';
60   disabledTests = [
61     # Test requires credentials
62     "test_prediction_client_client_info"
63     # Test requires project ID
64     "test_list_models"
65   ];
67   pythonImportsCheck = [
68     "google.cloud.automl"
69     "google.cloud.automl_v1"
70     "google.cloud.automl_v1beta1"
71   ];
73   meta = with lib; {
74     description = "Cloud AutoML API client library";
75     homepage = "https://github.com/googleapis/google-cloud-python/tree/main/packages/google-cloud-automl";
76     changelog = "https://github.com/googleapis/google-cloud-python/tree/google-cloud-automl-v${version}/packages/google-cloud-automl";
77     license = licenses.asl20;
78     maintainers = [ ];
79   };