summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/databricks-cli/default.nix
blob: f6e6ebd3c2cd5348ef833b5028f7ec9d62b14278 (plain)
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
{
  lib,
  buildPythonPackage,
  click,
  configparser,
  decorator,
  fetchFromGitHub,
  mock,
  oauthlib,
  pyjwt,
  pytestCheckHook,
  requests,
  requests-mock,
  six,
  tabulate,
}:

buildPythonPackage rec {
  pname = "databricks-cli";
  version = "0.18.0";
  format = "setuptools";

  src = fetchFromGitHub {
    owner = "databricks";
    repo = "databricks-cli";
    tag = version;
    hash = "sha256-dH95C2AY/B6F9BROr6rh+gVtKqxsg1gyEU5MzCd5aqs=";
  };

  propagatedBuildInputs = [
    click
    configparser
    oauthlib
    pyjwt
    requests
    requests-mock
    six
    tabulate
  ];

  nativeCheckInputs = [
    decorator
    mock
    pytestCheckHook
  ];

  disabledTestPaths = [
    # Disabled due to option parsing which we don't have
    "integration/dbfs/test_integration.py"
    "integration/workspace/test_integration.py"
  ];

  pythonImportsCheck = [ "databricks_cli" ];

  meta = {
    description = "Command line interface for Databricks";
    homepage = "https://github.com/databricks/databricks-cli";
    changelog = "https://github.com/databricks/databricks-cli/releases/tag/${version}";
    license = lib.licenses.asl20;
    maintainers = with lib.maintainers; [ tbenst ];
  };
}