1{ stdenv
2, buildPythonPackage
3, fetchPypi
4, enum34
5, google_api_core
6, google_cloud_storage
7, pandas
8, pytest
9, mock
10}:
11
12buildPythonPackage rec {
13 pname = "google-cloud-automl";
14 version = "1.0.1";
15
16 src = fetchPypi {
17 inherit pname version;
18 sha256 = "f08abe78d37fb94a3748aa43e66dae2bad52f991cc7740501a341bc6f6387fd5";
19 };
20
21 checkInputs = [ pandas pytest mock google_cloud_storage ];
22 propagatedBuildInputs = [ enum34 google_api_core ];
23
24 # ignore tests which need credentials
25 checkPhase = ''
26 pytest tests/unit -k 'not upload and not prediction_client_client_info'
27 '';
28
29 meta = with stdenv.lib; {
30 description = "Cloud AutoML API client library";
31 homepage = "https://github.com/GoogleCloudPlatform/google-cloud-python";
32 license = licenses.asl20;
33 maintainers = [ maintainers.costrouc ];
34 };
35}