8 python = python3.override { packageOverrides = self: super: { pydantic = super.pydantic_1; }; };
10 python.pkgs.buildPythonApplication rec {
15 src = fetchFromGitHub {
16 owner = "databrickslabs";
18 rev = "refs/tags/v${version}";
19 hash = "sha256-5qjEABNTSUD9I2uAn49HQ4n+gbAcmfnqS4Z2M9MvFXQ=";
29 pythonRemoveDeps = [ "mlflow-skinny" ];
31 build-system = with python.pkgs; [ setuptools ];
33 nativeBuildInputs = with python.pkgs; [ pythonRelaxDepsHook ];
35 propagatedBuildInputs =
55 ++ typer.optional-dependencies.all;
57 passthru.optional-dependencies = with python3.pkgs; {
63 gcp = [ google-cloud-storage ];
68 ++ (with python3.pkgs; [
76 export HOME=$(mktemp -d)
77 export PATH="$PATH:$out/bin"
80 pytestFlagsArray = [ "tests/unit" ];
83 # Fails because of dbfs CLI wrong call
84 "test_dbfs_unknown_user"
86 # Requires pylint, prospector, pydocstyle
87 "test_python_basic_sanity_check"
92 "tests/unit/api/test_build.py"
93 "tests/unit/api/test_destroyer.py"
94 "tests/unit/api/test_jinja.py"
95 "tests/unit/commands/test_configure.py"
96 "tests/unit/commands/test_deploy_jinja_variables_file.py"
97 "tests/unit/commands/test_deploy.py"
98 "tests/unit/commands/test_destroy.py"
99 "tests/unit/commands/test_execute.py"
100 "tests/unit/commands/test_help.py"
101 "tests/unit/commands/test_launch.py"
102 "tests/unit/models/test_deployment.py"
103 "tests/unit/models/test_destroyer.py"
104 "tests/unit/models/test_task.py"
105 "tests/unit/sync/test_commands.py"
106 "tests/unit/utils/test_common.py"
109 pythonImportsCheck = [ "dbx" ];
112 description = "CLI tool for advanced Databricks jobs management";
113 homepage = "https://github.com/databrickslabs/dbx";
114 changelog = "https://github.com/databrickslabs/dbx/blob/v${version}/CHANGELOG.md";
115 license = licenses.databricks-dbx;
116 maintainers = with maintainers; [ GuillaumeDesforges ];