about summary refs log tree commit diff
path: root/pkgs/applications/misc/dbx/default.nix
blob: 506f26096626db11d68abc8fc31bb4f87b18d39c (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
{ buildPythonPackage
, fetchFromGitHub
, databricks-cli
, scipy
, path
, pathspec
, pydantic
, protobuf
, tqdm
, mlflow
, azure-identity
, ruamel-yaml
, emoji
, cookiecutter
, retry
, azure-mgmt-datafactory
, azure-mgmt-subscription
, pytestCheckHook
, pytest-asyncio
, pytest-timeout
, pytest-mock
, lib
, git
}:

buildPythonPackage rec {
  pname = "dbx";
  version = "0.6.8";

  src = fetchFromGitHub {
    owner = "databrickslabs";
    repo = "dbx";
    rev = "v${version}";
    sha256 = "sha256-Ou+VdHFVQzmsxJiyaeDd/+FqHvJZeNGB+OXyoagJwtk=";
  };

  propagatedBuildInputs = [
    databricks-cli
    scipy
    path
    pathspec
    pydantic
    protobuf
    tqdm
    mlflow
    azure-identity
    ruamel-yaml
    emoji
    cookiecutter
    retry
    azure-mgmt-datafactory
    azure-mgmt-subscription
  ];

  checkInputs = [
    pytestCheckHook
    pytest-asyncio
    pytest-timeout
    pytest-mock
    git
  ];

  preCheck = ''
    export HOME=$TMPDIR
  '';

  disabledTests = [
    # fails because of dbfs CLI wrong call
    "test_dbfs_unknown_user"
    "test_dbfs_no_root"
  ];

  meta = with lib; {
    homepage = "https://github.com/databrickslabs/dbx";
    description = "CLI tool for advanced Databricks jobs management";
    license = licenses.databricks-dbx;
    maintainers = with maintainers; [ GuillaumeDesforges ];
  };
}