aboutsummaryrefslogtreecommitdiff
path: root/infra/libkookie/nixpkgs/pkgs/development/python-modules/google_cloud_automl/default.nix
blob: 43ffdc7a70dbbc881f1d5f460a7ce7320b910004 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
{ stdenv
, buildPythonPackage
, fetchPypi
, enum34
, google_api_core
, google_cloud_storage
, pandas
, pytest
, mock
}:

buildPythonPackage rec {
  pname = "google-cloud-automl";
  version = "1.0.1";

  src = fetchPypi {
    inherit pname version;
    sha256 = "f08abe78d37fb94a3748aa43e66dae2bad52f991cc7740501a341bc6f6387fd5";
  };

  checkInputs = [ pandas pytest mock google_cloud_storage ];
  propagatedBuildInputs = [ enum34 google_api_core ];

  # ignore tests which need credentials
  checkPhase = ''
    pytest tests/unit -k 'not upload and not prediction_client_client_info'
  '';

  meta = with stdenv.lib; {
    description = "Cloud AutoML API client library";
    homepage = "https://github.com/GoogleCloudPlatform/google-cloud-python";
    license = licenses.asl20;
    maintainers = [ maintainers.costrouc ];
  };
}