databricks-sql-cli: 0.1.4 -> 0.3.3 (#333007)

This commit is contained in:
Sebastián Mancilla 2024-08-30 23:19:03 -04:00 committed by GitHub
commit 87637026a6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 12 additions and 22 deletions

View File

@ -1,39 +1,31 @@
{ lib
, fetchFromGitHub
, fetchpatch
, python3
}:
python3.pkgs.buildPythonApplication rec {
pname = "databricks-sql-cli";
version = "0.1.4";
format = "pyproject";
version = "0.3.3";
pyproject = true;
src = fetchFromGitHub {
owner = "databricks";
repo = "databricks-sql-cli";
rev = "refs/tags/v${version}";
hash = "sha256-gr7LJfnvIu2Jf1XgILqfZoi8CbXeQyq0g1wLEBa5TPM=";
hash = "sha256-wmwXw1o+pRsRjA7ai9x5o1el7mNBqM6xlGrvw0IqfMo=";
};
patches = [
# https://github.com/databricks/databricks-sql-cli/pull/38
(fetchpatch {
url = "https://github.com/databricks/databricks-sql-cli/commit/fc294e00819b6966f1605e5c1ce654473510aefe.patch";
sha256 = "sha256-QVrb7mD0fVbHrbrDywI6tsFNYM19x74LY8rhqqC8szE=";
})
];
postPatch = ''
substituteInPlace pyproject.toml \
--replace 'python = ">=3.7.1,<4.0"' 'python = ">=3.8,<4.0"' \
--replace 'pandas = "1.3.4"' 'pandas = "~1.5"'
'';
nativeBuildInputs = with python3.pkgs; [
poetry-core
];
pythonRelaxDeps = [
"pandas"
"databricks-sql-connector"
"sqlparse"
"numpy"
];
propagatedBuildInputs = with python3.pkgs; [
cli-helpers
click
@ -51,6 +43,7 @@ python3.pkgs.buildPythonApplication rec {
meta = with lib; {
description = "CLI for querying Databricks SQL";
mainProgram = "dbsqlcli";
homepage = "https://github.com/databricks/databricks-sql-cli";
changelog = "https://github.com/databricks/databricks-sql-cli/releases/tag/v${version}";
license = licenses.databricks;

View File

@ -12,7 +12,6 @@
pyarrow,
pytestCheckHook,
pythonOlder,
pythonAtLeast,
sqlalchemy,
thrift,
requests,
@ -25,9 +24,7 @@ buildPythonPackage rec {
version = "3.3.0";
format = "pyproject";
# Depends on thrift that at the moment do not work in Python 3.12
# see PR 328415 fix this.
disabled = pythonOlder "3.7" || pythonAtLeast "3.12";
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "databricks";