2020-08-30 13:44:28 +01:00
|
|
|
{ lib, jdk, buildPythonPackage, fetchPypi, six, py4j }:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "databricks-connect";
|
2020-11-29 14:04:26 +00:00
|
|
|
version = "7.1.10";
|
2020-08-30 13:44:28 +01:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2020-11-29 14:04:26 +00:00
|
|
|
sha256 = "bae28fab1e08b709553c8efbeefc5b0ee4f5540a13a04e61fb3d348814823e16";
|
2020-08-30 13:44:28 +01: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 ];
|
|
|
|
};
|
|
|
|
}
|