nixpkgs/pkgs/development/python-modules/databricks-sql-connector/default.nix
2026-02-01 16:42:51 +01:00

73 lines
1.2 KiB
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
alembic,
lz4,
numpy,
oauthlib,
openpyxl,
pandas,
poetry-core,
pyarrow,
pybreaker,
pyjwt,
pytestCheckHook,
sqlalchemy,
thrift,
requests,
urllib3,
}:
buildPythonPackage rec {
pname = "databricks-sql-connector";
version = "4.2.4";
pyproject = true;
src = fetchFromGitHub {
owner = "databricks";
repo = "databricks-sql-python";
tag = "v${version}";
hash = "sha256-QoauhA2Zx2UvlCuKe9mxaOFJKpglVHQmPVVS56np4A0=";
};
pythonRelaxDeps = [
"pandas"
"pyarrow"
"thrift"
];
build-system = [
poetry-core
];
dependencies = [
alembic
lz4
numpy
oauthlib
openpyxl
pandas
pyarrow
pybreaker
pyjwt
sqlalchemy
thrift
requests
urllib3
];
nativeCheckInputs = [ pytestCheckHook ];
enabledTestPaths = [ "tests/unit" ];
pythonImportsCheck = [ "databricks" ];
meta = {
description = "Databricks SQL Connector for Python";
homepage = "https://docs.databricks.com/dev-tools/python-sql-connector.html";
changelog = "https://github.com/databricks/databricks-sql-python/blob/${src.tag}/CHANGELOG.md";
license = lib.licenses.asl20;
maintainers = with lib.maintainers; [ harvidsen ];
};
}