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