2021-01-11 07:54:33 +00:00
|
|
|
{ lib, stdenv
|
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";
|
2020-11-10 12:30:15 +00:00
|
|
|
version = "2.1.0";
|
2018-11-02 19:00:01 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2020-11-10 12:30:15 +00:00
|
|
|
sha256 = "520dfe2ee04d28f3088c9c582fa2a534fc272647d5e2e59acc903c0152e61696";
|
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
|
|
|
};
|
|
|
|
}
|