Commit 644fd982 authored by Fabian Affolter's avatar Fabian Affolter
Browse files
parent 1555f8d5
Loading
Loading
Loading
Loading
+17 −9
Original line number Diff line number Diff line
{ lib
, buildPythonPackage
, fetchFromGitHub
, thrift
, lz4
, numpy
, oauthlib
, pandas
, pyarrow
, poetry-core
, pyarrow
, pytestCheckHook
, pythonOlder
, pythonRelaxDepsHook
, thrift
}:

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

  disabled = pythonOlder "3.7";
@@ -20,22 +24,26 @@ buildPythonPackage rec {
    owner = "databricks";
    repo = "databricks-sql-python";
    rev = "refs/tags/v${version}";
    hash = "sha256-EMLUXGeVGIXFeaMvaJ+crivRZtOt7W/LCycIO2gwqXA=";
    hash = "sha256-XyDkL/bGnivx7MRG86vGS69mKdrWw7kKiuvQfBYFKVQ=";
  };

  postPatch = ''
    substituteInPlace pyproject.toml \
      --replace 'thrift = "^0.13.0"' 'thrift = ">=0.13.0,<1.0.0"'
  '';
  pythonRelaxDeps = [
    "numpy"
    "thrift"
  ];

  nativeBuildInputs = [
    poetry-core
    pythonRelaxDepsHook
  ];

  propagatedBuildInputs = [
    thrift
    lz4
    numpy
    oauthlib
    pandas
    pyarrow
    thrift
  ];

  nativeCheckInputs = [