Something went wrong. Try again.
lol
Something went wrong. Try again.
1.6 kB · 82 lines
Nix
at master
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283{ lib, buildPythonPackage, fetchPypi, google-api-core, google-cloud-storage, google-cloud-testutils, libcst, mock, pandas, proto-plus, protobuf, pytest-asyncio, pytestCheckHook, setuptools,}:
buildPythonPackage rec { pname = "google-cloud-automl"; version = "2.19.0"; pyproject = true;
src = fetchPypi { pname = "google_cloud_automl"; inherit version; hash = "sha256-xyZ7Wafv97FSB/5oaJ67P7kian4nL/E78nUL9ocUWM4="; };
build-system = [ setuptools ];
pythonRelaxDeps = [ "protobuf" ];
dependencies = [ google-api-core proto-plus protobuf ] ++ google-api-core.optional-dependencies.grpc;
optional-dependencies = { libcst = [ libcst ]; pandas = [ pandas ]; storage = [ google-cloud-storage ]; };
nativeCheckInputs = [ google-cloud-storage google-cloud-testutils mock pandas pytest-asyncio pytestCheckHook ];
preCheck = '' # do not shadow imports rm -r google '';
disabledTests = [ # Test requires credentials "test_prediction_client_client_info" # Test requires project ID "test_list_models" ];
pythonImportsCheck = [ "google.cloud.automl" "google.cloud.automl_v1" "google.cloud.automl_v1beta1" ];
meta = { description = "Cloud AutoML API client library"; homepage = "https://github.com/googleapis/google-cloud-python/tree/main/packages/google-cloud-automl"; changelog = "https://github.com/googleapis/google-cloud-python/tree/google-cloud-automl-v${version}/packages/google-cloud-automl"; license = lib.licenses.asl20; maintainers = [ ]; };}