2021-01-05 16:43:21 +01:00
|
|
|
{ stdenv
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, pytestCheckHook
|
|
|
|
, libcst
|
|
|
|
, google_api_core
|
|
|
|
, google_cloud_storage
|
|
|
|
, google_cloud_testutils
|
|
|
|
, pandas
|
|
|
|
, proto-plus
|
|
|
|
, pytest-asyncio
|
|
|
|
, mock
|
|
|
|
}:
|
2018-11-02 20:00:01 +01:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "google-cloud-automl";
|
2020-11-10 13:30:15 +01:00
|
|
|
version = "2.1.0";
|
2018-11-02 20:00:01 +01:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2020-11-10 13:30:15 +01:00
|
|
|
sha256 = "520dfe2ee04d28f3088c9c582fa2a534fc272647d5e2e59acc903c0152e61696";
|
2018-11-02 20:00:01 +01:00
|
|
|
};
|
|
|
|
|
2021-01-05 16:43:21 +01:00
|
|
|
propagatedBuildInputs = [ google_api_core libcst proto-plus ];
|
2020-11-03 02:15:01 +01:00
|
|
|
|
|
|
|
checkInputs = [
|
|
|
|
google_cloud_storage
|
|
|
|
google_cloud_testutils
|
|
|
|
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
|
2021-01-05 16:43:21 +01:00
|
|
|
# requires credentials
|
2020-11-03 02:15:01 +01:00
|
|
|
rm tests/system/gapic/v1beta1/test_system_tables_client_v1.py
|
2018-11-02 20:00:01 +01:00
|
|
|
'';
|
|
|
|
|
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"
|
|
|
|
];
|
|
|
|
|
2018-11-02 20:00:01 +01:00
|
|
|
meta = with stdenv.lib; {
|
|
|
|
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
|
|
|
};
|
|
|
|
}
|