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