2020-11-03 01:15:01 +00:00
|
|
|
{ stdenv, buildPythonPackage, fetchPypi, pythonOlder, pytestCheckHook, libcst
|
|
|
|
, google_api_core, google_cloud_storage, google_cloud_testutils, pandas
|
|
|
|
, proto-plus, pytest-asyncio, mock }:
|
2018-11-02 19:00:01 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "google-cloud-automl";
|
2020-11-03 01:15:01 +00:00
|
|
|
version = "2.0.0";
|
2018-11-02 19:00:01 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2020-11-03 01:15:01 +00:00
|
|
|
sha256 = "16hr1i2771z4yh19xg6kk037h9cv5j64q5bxb9nmkvj12hdwbwgv";
|
2018-11-02 19:00:01 +00:00
|
|
|
};
|
|
|
|
|
2020-11-03 01:15:01 +00:00
|
|
|
disabled = pythonOlder "3.6";
|
|
|
|
|
|
|
|
checkInputs = [
|
|
|
|
google_cloud_storage
|
|
|
|
google_cloud_testutils
|
|
|
|
mock
|
|
|
|
pandas
|
|
|
|
pytest-asyncio
|
|
|
|
pytestCheckHook
|
|
|
|
];
|
|
|
|
propagatedBuildInputs = [ google_api_core libcst proto-plus ];
|
2018-11-02 19:00:01 +00:00
|
|
|
|
2020-03-18 22:00:10 +00:00
|
|
|
# ignore tests which need credentials
|
2020-11-03 01:15:01 +00:00
|
|
|
disabledTests = [ "test_prediction_client_client_info" ];
|
|
|
|
preCheck = ''
|
|
|
|
rm -r google
|
|
|
|
rm tests/system/gapic/v1beta1/test_system_tables_client_v1.py
|
2018-11-02 19:00:01 +00:00
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
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;
|
|
|
|
maintainers = [ maintainers.costrouc ];
|
|
|
|
};
|
|
|
|
}
|