2021-01-25 08:26:54 +00:00
|
|
|
{ lib
|
2021-01-05 15:43:21 +00:00
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, pytestCheckHook
|
|
|
|
, libcst
|
2021-01-06 09:46:48 +00:00
|
|
|
, google-api-core
|
|
|
|
, google-cloud-storage
|
|
|
|
, google-cloud-testutils
|
2021-01-05 15:43:21 +00:00
|
|
|
, pandas
|
|
|
|
, proto-plus
|
|
|
|
, pytest-asyncio
|
|
|
|
, mock
|
|
|
|
}:
|
2018-11-02 19:00:01 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "google-cloud-automl";
|
2021-03-15 01:53:18 +00:00
|
|
|
version = "2.2.0";
|
2018-11-02 19:00:01 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2021-03-15 01:53:18 +00:00
|
|
|
sha256 = "874defad583e90e55a3e83aff27eb5fe108d9197d839cd45f3eacf2395881806";
|
2018-11-02 19:00:01 +00:00
|
|
|
};
|
|
|
|
|
2021-01-06 09:46:48 +00:00
|
|
|
propagatedBuildInputs = [ google-api-core libcst proto-plus ];
|
2020-11-03 01:15:01 +00:00
|
|
|
|
|
|
|
checkInputs = [
|
2021-01-06 09:46:48 +00:00
|
|
|
google-cloud-storage
|
|
|
|
google-cloud-testutils
|
2020-11-03 01:15:01 +00:00
|
|
|
mock
|
|
|
|
pandas
|
|
|
|
pytest-asyncio
|
|
|
|
pytestCheckHook
|
|
|
|
];
|
2018-11-02 19:00:01 +00:00
|
|
|
|
2020-11-03 01:15:01 +00:00
|
|
|
preCheck = ''
|
2021-01-05 15:43:21 +00:00
|
|
|
# do not shadow imports
|
2020-11-03 01:15:01 +00:00
|
|
|
rm -r google
|
2021-01-05 15:43:21 +00:00
|
|
|
# requires credentials
|
2020-11-03 01:15:01 +00:00
|
|
|
rm tests/system/gapic/v1beta1/test_system_tables_client_v1.py
|
2018-11-02 19:00:01 +00:00
|
|
|
'';
|
|
|
|
|
2021-01-05 15:43:21 +00:00
|
|
|
disabledTests = [
|
|
|
|
# requires credentials
|
|
|
|
"test_prediction_client_client_info"
|
|
|
|
];
|
|
|
|
|
|
|
|
pythonImportsCheck = [
|
|
|
|
"google.cloud.automl"
|
|
|
|
"google.cloud.automl_v1"
|
|
|
|
"google.cloud.automl_v1beta1"
|
|
|
|
];
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2018-11-02 19:00:01 +00:00
|
|
|
description = "Cloud AutoML API client library";
|
2020-11-03 01:15:01 +00:00
|
|
|
homepage = "https://github.com/googleapis/python-automl";
|
2018-11-02 19:00:01 +00:00
|
|
|
license = licenses.asl20;
|
2021-01-05 15:43:21 +00:00
|
|
|
maintainers = with maintainers; [ SuperSandro2000 ];
|
2018-11-02 19:00:01 +00:00
|
|
|
};
|
|
|
|
}
|