48af15f7a5
GitOrigin-RevId: 04a2b269d8921505a2969fc9ec25c1f517f2b307
37 lines
917 B
Nix
37 lines
917 B
Nix
{ lib, jdk, buildPythonPackage, fetchPypi, six, py4j }:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "databricks-connect";
|
|
version = "8.1.0";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
sha256 = "3726c648cc60796294356e2617acc534d2503824ccfbdff26abbea595eb83135";
|
|
};
|
|
|
|
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 ];
|
|
};
|
|
}
|