Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ lib, jdk, buildPythonPackage, fetchPypi, six, py4j }: 2 3buildPythonPackage rec { 4 pname = "databricks-connect"; 5 version = "7.1.0"; 6 7 src = fetchPypi { 8 inherit pname version; 9 sha256 = "996a9d0f271f6c7edbd2d85b2efb6ff4e58d15222e80f87ca17fdbf224e17056"; 10 }; 11 12 sourceRoot = "."; 13 14 propagatedBuildInputs = [ py4j six jdk ]; 15 16 # requires network access 17 doCheck = false; 18 19 preFixup = '' 20 substituteInPlace "$out/bin/find-spark-home" \ 21 --replace find_spark_home.py .find_spark_home.py-wrapped 22 ''; 23 24 pythonImportsCheck = [ "pyspark" "six" "py4j" ]; 25 26 meta = with lib; { 27 description = "Client for connecting to remote Databricks clusters"; 28 homepage = "https://pypi.org/project/databricks-connect"; 29 license = licenses.databricks; 30 maintainers = with maintainers; [ kfollesdal ]; 31 }; 32}