1a04744f74
There is no need to disable Python packages for Python versions that are
no longer in Nixpkgs.
This change was generated using the following script:
pattern='^\s*disabled\s*=\s*pythonOlder\s*"3\.\([0-9]\|10\)"\s*;\s*$'
for f in $(find -name '*.nix'); do
grep -q "$pattern" "$f" || continue
sed -i "/$pattern/d" "$f"
if [ $(grep -c pythonOlder "$f") == 1 ]; then
sed -i '/^\s*pythonOlder,\s*$/d' "$f"
fi
nixfmt "$f"
done
55 lines
1013 B
Nix
55 lines
1013 B
Nix
{
|
|
lib,
|
|
jdk8,
|
|
buildPythonPackage,
|
|
fetchPypi,
|
|
setuptools,
|
|
six,
|
|
py4j,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "databricks-connect";
|
|
version = "11.3.40";
|
|
pyproject = true;
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
hash = "sha256-rSuW/6fSro1pAxDj2tZ+EYvO0zf0yCWXNaS9Ls7xJfw=";
|
|
};
|
|
|
|
sourceRoot = ".";
|
|
|
|
build-system = [ setuptools ];
|
|
|
|
dependencies = [
|
|
py4j
|
|
six
|
|
jdk8
|
|
];
|
|
|
|
# requires network access
|
|
doCheck = false;
|
|
|
|
pythonRelaxDeps = [ "py4j" ];
|
|
|
|
preFixup = ''
|
|
substituteInPlace "$out/bin/find-spark-home" \
|
|
--replace-fail find_spark_home.py .find_spark_home.py-wrapped
|
|
'';
|
|
|
|
pythonImportsCheck = [
|
|
"pyspark"
|
|
"six"
|
|
"py4j"
|
|
];
|
|
|
|
meta = {
|
|
description = "Client for connecting to remote Databricks clusters";
|
|
homepage = "https://pypi.org/project/databricks-connect";
|
|
sourceProvenance = with lib.sourceTypes; [ binaryBytecode ];
|
|
license = lib.licenses.databricks;
|
|
maintainers = with lib.maintainers; [ kfollesdal ];
|
|
};
|
|
}
|