Fabian Affolter
2023-02-18 00:28:51 +01:00
parent 1555f8d534
commit 644fd982a9
@@ -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 = [