1 { lib, jdk, buildPythonPackage, fetchPypi, six, py4j }:
3 buildPythonPackage rec {
4 pname = "databricks-connect";
9 sha256 = "3726c648cc60796294356e2617acc534d2503824ccfbdff26abbea595eb83135";
14 propagatedBuildInputs = [ py4j six jdk ];
16 # requires network access
20 substituteInPlace setup.py \
21 --replace "py4j==0.10.9" "py4j"
25 substituteInPlace "$out/bin/find-spark-home" \
26 --replace find_spark_home.py .find_spark_home.py-wrapped
29 pythonImportsCheck = [ "pyspark" "six" "py4j" ];
32 description = "Client for connecting to remote Databricks clusters";
33 homepage = "https://pypi.org/project/databricks-connect";
34 license = licenses.databricks;
35 maintainers = with maintainers; [ kfollesdal ];