ce641f4048
GitOrigin-RevId: bc5d68306b40b8522ffb69ba6cff91898c2fbbff
37 lines
919 B
Nix
37 lines
919 B
Nix
{ lib, jdk8, buildPythonPackage, fetchPypi, six, py4j }:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "databricks-connect";
|
|
version = "9.1.2";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
sha256 = "9672aae60b299de58a527f320df45769cadf436398e21f4ce73424a25badb7a7";
|
|
};
|
|
|
|
sourceRoot = ".";
|
|
|
|
propagatedBuildInputs = [ py4j six jdk8 ];
|
|
|
|
# requires network access
|
|
doCheck = false;
|
|
|
|
prePatch = ''
|
|
substituteInPlace setup.py \
|
|
--replace "py4j==0.10.9" "py4j"
|
|
'';
|
|
|
|
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 ];
|
|
};
|
|
}
|