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-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
|
|
|
};
|
|
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|