ansible-later: 2.0.22 -> 2.0.23
[NixPkgs.git] / pkgs / development / python-modules / databricks-sql-connector / default.nix
blobb9f5561ebe60dac98ea911e3fe43d7e767d6a6da
1 { lib
2 , buildPythonPackage
3 , fetchFromGitHub
4 , thrift
5 , pandas
6 , pyarrow
7 , poetry-core
8 , pytestCheckHook
9 }:
11 buildPythonPackage rec {
12   pname = "databricks-sql-connector";
13   version = "2.0.5";
14   format = "pyproject";
16   src = fetchFromGitHub {
17     owner = "databricks";
18     repo = "databricks-sql-python";
19     rev = "v${version}";
20     sha256 = "sha256-Qpdyn6z1mbO4bzyUZ2eYdd9pfIkIP/Aj4YgNXaYwxpE=";
21   };
23   postPatch = ''
24     substituteInPlace pyproject.toml \
25       --replace 'thrift = "^0.13.0"' 'thrift = ">=0.13.0,<1.0.0"'
26   '';
28   nativeBuildInputs = [
29     poetry-core
30   ];
32   propagatedBuildInputs = [
33     thrift
34     pandas
35     pyarrow
36   ];
38   checkInputs = [
39     pytestCheckHook
40   ];
42   pytestFlagsArray = [ "tests/unit" ];
44   meta = with lib; {
45     description = "Databricks SQL Connector for Python";
46     homepage = "https://docs.databricks.com/dev-tools/python-sql-connector.html";
47     license = licenses.asl20;
48     maintainers = with maintainers; [ harvidsen ];
49   };