2020-08-30 12:44:28 +00:00
|
|
|
{ lib, jdk, buildPythonPackage, fetchPypi, six, py4j }:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "databricks-connect";
|
2020-09-29 08:51:52 +00:00
|
|
|
version = "7.1.1";
|
2020-08-30 12:44:28 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2020-09-29 08:51:52 +00:00
|
|
|
sha256 = "c7f508c84edc7f80a131650b892889624e4457c10f44318465dd3f7b8cf5be6d";
|
2020-08-30 12:44:28 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
sourceRoot = ".";
|
|
|
|
|
|
|
|
propagatedBuildInputs = [ py4j six jdk ];
|
|
|
|
|
|
|
|
# requires network access
|
|
|
|
doCheck = false;
|
|
|
|
|
|
|
|
preFixup = ''
|
|
|
|
substituteInPlace "$out/bin/find-spark-home" \
|
|
|
|
--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 ];
|
|
|
|
};
|
|
|
|
}
|