2021-12-06 16:07:01 +00:00
|
|
|
{ lib, jdk8, buildPythonPackage, fetchPypi, six, py4j }:
|
2020-09-25 04:45:31 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "databricks-connect";
|
2021-12-30 13:39:12 +00:00
|
|
|
version = "9.1.5";
|
2020-09-25 04:45:31 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2021-12-30 13:39:12 +00:00
|
|
|
sha256 = "26b88b1d8fdacf5226cf9c1924fae974c955ccbfe2fdcd08574327007bdcbdd9";
|
2020-09-25 04:45:31 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
sourceRoot = ".";
|
|
|
|
|
2021-12-06 16:07:01 +00:00
|
|
|
propagatedBuildInputs = [ py4j six jdk8 ];
|
2020-09-25 04:45:31 +00:00
|
|
|
|
|
|
|
# requires network access
|
|
|
|
doCheck = false;
|
|
|
|
|
2020-12-07 07:45:13 +00:00
|
|
|
prePatch = ''
|
|
|
|
substituteInPlace setup.py \
|
|
|
|
--replace "py4j==0.10.9" "py4j"
|
|
|
|
'';
|
|
|
|
|
2020-09-25 04:45:31 +00:00
|
|
|
preFixup = ''
|
2020-12-07 07:45:13 +00:00
|
|
|
substituteInPlace "$out/bin/find-spark-home" \
|
2020-09-25 04:45:31 +00:00
|
|
|
--replace find_spark_home.py .find_spark_home.py-wrapped
|
|
|
|
'';
|
|
|
|
|
|
|
|
pythonImportsCheck = [ "pyspark" "six" "py4j" ];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Client for connecting to remote Databricks clusters";
|
|
|
|
homepage = "https://pypi.org/project/databricks-connect";
|
|
|
|
license = licenses.databricks;
|
|
|
|
maintainers = with maintainers; [ kfollesdal ];
|
|
|
|
};
|
|
|
|
}
|