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-03-18 15:00:10 -07:00
|
|
|
version = "0.10.0";
|
2018-11-02 12:00:01 -07:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2020-03-18 15:00:10 -07:00
|
|
|
sha256 = "031331fs97jpyxacwsmhig0ndidn97r288qnkrzfdvg1wxw5rdhi";
|
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 ];
|
|
|
|
};
|
|
|
|
}
|