2018-11-02 12:00:01 -07:00
|
|
|
{ stdenv
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, enum34
|
|
|
|
, google_api_core
|
2020-03-18 15:00:10 -07:00
|
|
|
, google_cloud_storage
|
|
|
|
, pandas
|
2018-11-02 12:00:01 -07:00
|
|
|
, pytest
|
2019-02-03 02:56:30 -08:00
|
|
|
, mock
|
2018-11-02 12:00:01 -07:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "google-cloud-automl";
|
2020-08-16 10:31:00 -07:00
|
|
|
version = "1.0.1";
|
2018-11-02 12:00:01 -07:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2020-08-16 10:31:00 -07:00
|
|
|
sha256 = "f08abe78d37fb94a3748aa43e66dae2bad52f991cc7740501a341bc6f6387fd5";
|
2018-11-02 12:00:01 -07:00
|
|
|
};
|
|
|
|
|
2020-03-18 15:00:10 -07:00
|
|
|
checkInputs = [ pandas pytest mock google_cloud_storage ];
|
2018-11-02 12:00:01 -07:00
|
|
|
propagatedBuildInputs = [ enum34 google_api_core ];
|
|
|
|
|
2020-03-18 15:00:10 -07:00
|
|
|
# ignore tests which need credentials
|
2018-11-02 12:00:01 -07:00
|
|
|
checkPhase = ''
|
2020-03-18 15:00:10 -07:00
|
|
|
pytest tests/unit -k 'not upload and not prediction_client_client_info'
|
2018-11-02 12:00:01 -07:00
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Cloud AutoML API client library";
|
2020-03-31 18:11:51 -07:00
|
|
|
homepage = "https://github.com/GoogleCloudPlatform/google-cloud-python";
|
2018-11-02 12:00:01 -07:00
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = [ maintainers.costrouc ];
|
|
|
|
};
|
|
|
|
}
|