38 lines
917 B
Nix
38 lines
917 B
Nix
{ lib, jdk, buildPythonPackage, fetchPypi, six, py4j }:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "databricks-connect";
|
|
version = "7.3.9";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
sha256 = "f789515f3be1bd1f88043110d62859b01a9661e384a81f1768fca4e4bb49a358";
|
|
};
|
|
|
|
sourceRoot = ".";
|
|
|
|
propagatedBuildInputs = [ py4j six jdk ];
|
|
|
|
# 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 ];
|
|
};
|
|
}
|