7 python3.pkgs.buildPythonApplication rec {
8 pname = "databricks-sql-cli";
12 src = fetchFromGitHub {
14 repo = "databricks-sql-cli";
15 rev = "refs/tags/v${version}";
16 hash = "sha256-gr7LJfnvIu2Jf1XgILqfZoi8CbXeQyq0g1wLEBa5TPM=";
20 # https://github.com/databricks/databricks-sql-cli/pull/38
22 url = "https://github.com/databricks/databricks-sql-cli/commit/fc294e00819b6966f1605e5c1ce654473510aefe.patch";
23 sha256 = "sha256-QVrb7mD0fVbHrbrDywI6tsFNYM19x74LY8rhqqC8szE=";
28 substituteInPlace pyproject.toml \
29 --replace 'python = ">=3.7.1,<4.0"' 'python = ">=3.8,<4.0"' \
30 --replace 'pandas = "1.3.4"' 'pandas = "~1.5"'
33 nativeBuildInputs = with python3.pkgs; [
37 propagatedBuildInputs = with python3.pkgs; [
41 databricks-sql-connector
48 nativeCheckInputs = with python3.pkgs; [
53 description = "CLI for querying Databricks SQL";
54 homepage = "https://github.com/databricks/databricks-sql-cli";
55 changelog = "https://github.com/databricks/databricks-sql-cli/releases/tag/v${version}";
56 license = licenses.databricks;
57 maintainers = with maintainers; [ kfollesdal ];