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-11-14 18:14:28 +00:00
|
|
|
version = "2.5.2";
|
2018-11-02 19:00:01 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2021-11-14 18:14:28 +00:00
|
|
|
sha256 = "4c759ae99979d9f94ed0bdfe4937f41c81634f934ec11d25eb089430781eafec";
|
2018-11-02 19:00:01 +00:00
|
|
|
};
|
|
|
|
|
2021-06-21 08:09:46 +01: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
|
2018-11-02 19:00:01 +00:00
|
|
|
'';
|
|
|
|
|
2021-06-21 08:09:46 +01:00
|
|
|
disabledTestPaths = [
|
|
|
|
# requires credentials
|
|
|
|
"tests/system/gapic/v1beta1/test_system_tables_client_v1.py"
|
|
|
|
];
|
|
|
|
|
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
|
|
|
};
|
|
|
|
}
|