depot/third_party/nixpkgs/pkgs/development/python-modules/databricks-connect/default.nix
Default email a425ba4985 Project import generated by Copybara.
GitOrigin-RevId: 5b091d4fbe3b7b7493c3b46fe0842e4b30ea24b3
2021-12-30 14:39:12 +01:00

37 lines
919 B
Nix

{ lib, jdk8, buildPythonPackage, fetchPypi, six, py4j }:
buildPythonPackage rec {
pname = "databricks-connect";
version = "9.1.5";
src = fetchPypi {
inherit pname version;
sha256 = "26b88b1d8fdacf5226cf9c1924fae974c955ccbfe2fdcd08574327007bdcbdd9";
};
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 ];
};
}