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