1{ lib
2, buildPythonPackage
3, click
4, configparser
5, decorator
6, fetchFromGitHub
7, mock
8, oauthlib
9, pyjwt
10, pytestCheckHook
11, pythonOlder
12, requests
13, requests-mock
14, six
15, tabulate
16}:
17
18buildPythonPackage rec {
19 pname = "databricks-cli";
20 version = "0.17.7";
21 format = "setuptools";
22
23 disabled = pythonOlder "3.7";
24
25 src = fetchFromGitHub {
26 owner = "databricks";
27 repo = pname;
28 rev = "refs/tags/${version}";
29 hash = "sha256-Eg6qpoEvWlbOJbMIkbJiHfHVrglVfVNq/TCOhQxukl0=";
30 };
31
32 propagatedBuildInputs = [
33 click
34 configparser
35 oauthlib
36 pyjwt
37 requests
38 requests-mock
39 six
40 tabulate
41 ];
42
43 nativeCheckInputs = [
44 decorator
45 mock
46 pytestCheckHook
47 ];
48
49 disabledTestPaths = [
50 # Disabled due to option parsing which we don't have
51 "integration/dbfs/test_integration.py"
52 "integration/workspace/test_integration.py"
53 ];
54
55 pythonImportsCheck = [
56 "databricks_cli"
57 ];
58
59 meta = with lib; {
60 description = "Command line interface for Databricks";
61 homepage = "https://github.com/databricks/databricks-cli";
62 changelog = "https://github.com/databricks/databricks-cli/releases/tag/${version}";
63 license = licenses.asl20;
64 maintainers = with maintainers; [ tbenst ];
65 };
66}