1{ lib, buildPythonPackage, fetchPypi
2, click
3, oauthlib
4, requests
5, tabulate
6, six
7, configparser
8, pytest
9}:
10
11buildPythonPackage rec {
12 pname = "databricks-cli";
13 version = "0.17.3";
14
15 src = fetchPypi {
16 inherit pname version;
17 sha256 = "sha256-LwDz5w6FmAnwWViF7Hb8c7pgrQzM1pVk999dlbbJAGY=";
18 };
19
20 checkInputs = [
21 pytest
22 ];
23
24 checkPhase = "pytest tests";
25 # tests folder is missing in PyPI
26 doCheck = false;
27
28 propagatedBuildInputs = [
29 click
30 oauthlib
31 requests
32 tabulate
33 six
34 configparser
35 ];
36
37 meta = with lib; {
38 homepage = "https://github.com/databricks/databricks-cli";
39 description = "A command line interface for Databricks";
40 license = licenses.asl20;
41 maintainers = with maintainers; [ tbenst ];
42 };
43}