Unverified Commit fb40b5ff authored by Fabian Affolter's avatar Fabian Affolter Committed by GitHub
Browse files

Merge pull request #221157 from fabaff/databricks-sql-cli-fix

python310Packages.databricks-sql-connector: 2.3.0 -> 2.4.0 
parents 44714c8c 1df9510f
Loading
Loading
Loading
Loading
+18 −23
Original line number Diff line number Diff line
{ lib
, buildPythonApplication
, fetchFromGitHub
, fetchpatch
, poetry-core
, pandas
, prompt-toolkit
, databricks-sql-connector
, pygments
, configobj
, sqlparse
, cli-helpers
, click
, pytestCheckHook
, python3
}:

buildPythonApplication rec {
python3.pkgs.buildPythonApplication rec {
  pname = "databricks-sql-cli";
  version = "0.1.4";
  format = "pyproject";
@@ -22,8 +12,8 @@ buildPythonApplication rec {
  src = fetchFromGitHub {
    owner = "databricks";
    repo = "databricks-sql-cli";
    rev = "v${version}";
    sha256 = "sha256-gr7LJfnvIu2Jf1XgILqfZoi8CbXeQyq0g1wLEBa5TPM=";
    rev = "refs/tags/v${version}";
    hash = "sha256-gr7LJfnvIu2Jf1XgILqfZoi8CbXeQyq0g1wLEBa5TPM=";
  };

  patches = [
@@ -37,27 +27,32 @@ buildPythonApplication rec {
  postPatch = ''
    substituteInPlace pyproject.toml \
      --replace 'python = ">=3.7.1,<4.0"' 'python = ">=3.8,<4.0"' \
      --replace 'pandas = "1.3.4"' 'pandas = "~1.4"'
      --replace 'pandas = "1.3.4"' 'pandas = "~1.5"'
  '';

  nativeBuildInputs = [ poetry-core ];
  nativeBuildInputs = with python3.pkgs; [
    poetry-core
  ];

  propagatedBuildInputs = [
    prompt-toolkit
    pandas
  propagatedBuildInputs = with python3.pkgs; [
    cli-helpers
    click
    configobj
    databricks-sql-connector
    pandas
    prompt-toolkit
    pygments
    configobj
    sqlparse
    cli-helpers
    click
  ];

  nativeCheckInputs = [ pytestCheckHook ];
  nativeCheckInputs = with python3.pkgs; [
    pytestCheckHook
  ];

  meta = with lib; {
    description = "CLI for querying Databricks SQL";
    homepage = "https://github.com/databricks/databricks-sql-cli";
    changelog = "https://github.com/databricks/databricks-sql-cli/releases/tag/v${version}";
    license = licenses.databricks;
    maintainers = with maintainers; [ kfollesdal ];
  };
+8 −2
Original line number Diff line number Diff line
{ lib
, buildPythonPackage
, fetchFromGitHub
, alembic
, lz4
, numpy
, oauthlib
, openpyxl
, pandas
, poetry-core
, pyarrow
, pytestCheckHook
, pythonOlder
, pythonRelaxDepsHook
, sqlalchemy
, thrift
}:

buildPythonPackage rec {
  pname = "databricks-sql-connector";
  version = "2.3.0";
  version = "2.4.0";
  format = "pyproject";

  disabled = pythonOlder "3.7";
@@ -24,7 +27,7 @@ buildPythonPackage rec {
    owner = "databricks";
    repo = "databricks-sql-python";
    rev = "refs/tags/v${version}";
    hash = "sha256-XyDkL/bGnivx7MRG86vGS69mKdrWw7kKiuvQfBYFKVQ=";
    hash = "sha256-V8Nl6xr96Xnd1gkw9R0aqXkitLESsAyW7ufTYn6ttLg=";
  };

  pythonRelaxDeps = [
@@ -38,11 +41,14 @@ buildPythonPackage rec {
  ];

  propagatedBuildInputs = [
    alembic
    lz4
    numpy
    oauthlib
    openpyxl
    pandas
    pyarrow
    sqlalchemy
    thrift
  ];