mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-22 06:53:01 +00:00
pythonPackages.databricks-connect: init at 7.1.0
This commit is contained in:
parent
ca9a8ff6c2
commit
bf74036952
@ -439,7 +439,7 @@ lib.mapAttrs (n: v: v // { shortName = n; }) {
|
||||
databricks = {
|
||||
fullName = "Databricks Proprietary License";
|
||||
url = "https://pypi.org/project/databricks-connect";
|
||||
|
||||
free = false;
|
||||
};
|
||||
|
||||
issl = {
|
||||
|
@ -0,0 +1,32 @@
|
||||
{ lib, jdk, buildPythonPackage, fetchPypi, six, py4j }:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "databricks-connect";
|
||||
version = "7.1.0";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "996a9d0f271f6c7edbd2d85b2efb6ff4e58d15222e80f87ca17fdbf224e17056";
|
||||
};
|
||||
|
||||
sourceRoot = ".";
|
||||
|
||||
propagatedBuildInputs = [ py4j six jdk ];
|
||||
|
||||
# requires network access
|
||||
doCheck = false;
|
||||
|
||||
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 ];
|
||||
};
|
||||
}
|
@ -1412,6 +1412,8 @@ in {
|
||||
|
||||
databricks-cli = callPackage ../development/python-modules/databricks-cli { };
|
||||
|
||||
databricks-connect = callPackage ../development/python-modules/databricks-connect { inherit (pkgs) jdk; };
|
||||
|
||||
dataclasses = callPackage ../development/python-modules/dataclasses { };
|
||||
|
||||
dataclasses-json = callPackage ../development/python-modules/dataclasses-json { };
|
||||
|
Loading…
Reference in New Issue
Block a user