2022-09-05 15:26:30 +02:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchFromGitHub,
|
2023-03-14 12:07:48 +01:00
|
|
|
alembic,
|
2023-02-18 00:28:11 +01:00
|
|
|
lz4,
|
|
|
|
numpy,
|
|
|
|
oauthlib,
|
2023-03-14 12:07:48 +01:00
|
|
|
openpyxl,
|
2022-09-05 15:26:30 +02:00
|
|
|
pandas,
|
|
|
|
poetry-core,
|
2023-02-18 00:28:11 +01:00
|
|
|
pyarrow,
|
2022-09-05 15:26:30 +02:00
|
|
|
pytestCheckHook,
|
2023-01-26 13:51:57 +01:00
|
|
|
pythonOlder,
|
2023-03-14 12:07:48 +01:00
|
|
|
sqlalchemy,
|
2023-02-18 00:28:11 +01:00
|
|
|
thrift,
|
2022-09-05 15:26:30 +02:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "databricks-sql-connector";
|
2024-06-19 05:05:15 +02:00
|
|
|
version = "3.2.0";
|
2022-09-05 15:26:30 +02:00
|
|
|
format = "pyproject";
|
|
|
|
|
2023-01-26 13:51:57 +01:00
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
|
2022-09-05 15:26:30 +02:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "databricks";
|
|
|
|
repo = "databricks-sql-python";
|
2022-12-30 20:13:04 +01:00
|
|
|
rev = "refs/tags/v${version}";
|
2024-06-19 05:05:15 +02:00
|
|
|
hash = "sha256-Sk/tYgFnWWHAsMSHhEUIwUagc6femAzQpQGyzJGXW1E=";
|
2022-09-05 15:26:30 +02:00
|
|
|
};
|
|
|
|
|
2023-02-18 00:28:11 +01:00
|
|
|
pythonRelaxDeps = [
|
|
|
|
"numpy"
|
|
|
|
"thrift"
|
|
|
|
];
|
2022-09-05 15:26:30 +02:00
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
poetry-core
|
|
|
|
];
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
2023-03-14 12:07:48 +01:00
|
|
|
alembic
|
2023-02-18 00:28:11 +01:00
|
|
|
lz4
|
|
|
|
numpy
|
|
|
|
oauthlib
|
2023-03-14 12:07:48 +01:00
|
|
|
openpyxl
|
2022-09-05 15:26:30 +02:00
|
|
|
pandas
|
|
|
|
pyarrow
|
2023-03-14 12:07:48 +01:00
|
|
|
sqlalchemy
|
2023-02-18 00:28:11 +01:00
|
|
|
thrift
|
2022-09-05 15:26:30 +02:00
|
|
|
];
|
|
|
|
|
2023-01-21 12:00:00 +00:00
|
|
|
nativeCheckInputs = [ pytestCheckHook ];
|
2022-09-05 15:26:30 +02:00
|
|
|
|
2023-01-26 13:51:57 +01:00
|
|
|
pytestFlagsArray = [ "tests/unit" ];
|
|
|
|
|
|
|
|
pythonImportsCheck = [ "databricks" ];
|
2022-09-05 15:26:30 +02:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Databricks SQL Connector for Python";
|
2022-09-27 15:27:48 +03:00
|
|
|
homepage = "https://docs.databricks.com/dev-tools/python-sql-connector.html";
|
2023-01-26 13:51:57 +01:00
|
|
|
changelog = "https://github.com/databricks/databricks-sql-python/blob/v${version}/CHANGELOG.md";
|
2022-09-05 15:26:30 +02:00
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = with maintainers; [ harvidsen ];
|
2023-03-29 00:47:32 +02:00
|
|
|
# No SQLAlchemy 2.0 support
|
|
|
|
# https://github.com/databricks/databricks-sql-python/issues/91
|
|
|
|
broken = true;
|
2022-09-05 15:26:30 +02:00
|
|
|
};
|
|
|
|
}
|