2020-04-24 23:36:52 +00:00
|
|
|
{ stdenv, buildPythonPackage, fetchPypi
|
|
|
|
, click
|
|
|
|
, requests
|
|
|
|
, tabulate
|
|
|
|
, six
|
|
|
|
, configparser
|
|
|
|
, pytest
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "databricks-cli";
|
2020-06-15 15:56:04 +00:00
|
|
|
version = "0.11.0";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2020-06-15 15:56:04 +00:00
|
|
|
sha256 = "b3c7205dd8cb9935c475794ebd41b53aba79a53e028d3cf6b5871eec83c89ec0";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
checkInputs = [
|
|
|
|
pytest
|
|
|
|
];
|
|
|
|
|
|
|
|
checkPhase = "pytest tests";
|
|
|
|
# tests folder is missing in PyPI
|
|
|
|
doCheck = false;
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
click
|
|
|
|
requests
|
|
|
|
tabulate
|
|
|
|
six
|
|
|
|
configparser
|
|
|
|
];
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
homepage = "https://github.com/databricks/databricks-cli";
|
|
|
|
description = "A command line interface for Databricks";
|
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = with maintainers; [ tbenst ];
|
|
|
|
};
|
|
|
|
}
|