diff --git a/pkgs/development/python-modules/databricks-sql-connector/default.nix b/pkgs/development/python-modules/databricks-sql-connector/default.nix index 9c23e39c4871..5c01cb734d75 100644 --- a/pkgs/development/python-modules/databricks-sql-connector/default.nix +++ b/pkgs/development/python-modules/databricks-sql-connector/default.nix @@ -1,17 +1,21 @@ { 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 = [