Something went wrong. Try again.
Nix Packages collection & NixOS github.com/NixOS/nixpkgs
Something went wrong. Try again.
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798{ lib, buildPythonPackage, fetchFromGitHub,
# build-system setuptools,
# dependencies google-auth, protobuf, requests,
# tests langchain-openai, openai, pyfakefs, pytestCheckHook, pytest-mock, requests-mock,}:
buildPythonPackage (finalAttrs: { pname = "databricks-sdk"; version = "0.140.0"; pyproject = true; __structuredAttrs = true;
src = fetchFromGitHub { owner = "databricks"; repo = "databricks-sdk-py"; tag = "v${finalAttrs.version}"; hash = "sha256-TISGcfQy83LjE+SZso6OXo+UV3Df4HSHRnev1SSO6WM="; };
build-system = [ setuptools ];
pythonRelaxDeps = [ # For protobuf 7 "protobuf" ];
dependencies = [ google-auth protobuf requests ];
pythonImportsCheck = [ "databricks.sdk" ];
nativeCheckInputs = [ langchain-openai openai pyfakefs pytestCheckHook pytest-mock requests-mock ];
disabledTests = [ # Require internet access # ValueError: default auth: cannot configure default credentials, please check... "test_azure_cli_does_not_specify_tenant_id_with_msi" "test_azure_cli_fallback" "test_azure_cli_user_no_management_access" "test_azure_cli_user_with_management_access" "test_azure_cli_with_warning_on_stderr" "test_azure_cli_workspace_header_present" "test_config_azure_cli_host" "test_config_azure_cli_host_and_resource_id" "test_config_azure_cli_host_and_resource_i_d_configuration_precedence" "test_load_azure_tenant_id_404" "test_load_azure_tenant_id_happy_path" "test_load_azure_tenant_id_no_location_header" "test_load_azure_tenant_id_unparsable_location_header" # Take an exceptionally long time when sandboxing is enabled due to retries "test_multipart_upload" "test_rewind_seekable_stream" "test_resumable_upload" # flaky -- ConnectionBroken under heavy load indicates a timing issue "test_github_oidc_flow_works_with_azure" ];
__darwinAllowLocalNetworking = true;
meta = { description = "Databricks SDK for Python"; homepage = "https://github.com/databricks/databricks-sdk-py"; changelog = "https://github.com/databricks/databricks-sdk-py/blob/${finalAttrs.src.tag}/CHANGELOG.md"; license = lib.licenses.asl20; maintainers = with lib.maintainers; [ GaetanLepage ]; };})