2022-12-17 10:02:37 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
2020-04-24 23:36:52 +00:00
|
|
|
, click
|
2022-12-17 10:02:37 +00:00
|
|
|
, configparser
|
|
|
|
, decorator
|
|
|
|
, fetchFromGitHub
|
|
|
|
, mock
|
2022-08-12 12:06:08 +00:00
|
|
|
, oauthlib
|
2022-12-17 10:02:37 +00:00
|
|
|
, pyjwt
|
|
|
|
, pytestCheckHook
|
|
|
|
, pythonOlder
|
2020-04-24 23:36:52 +00:00
|
|
|
, requests
|
2022-12-17 10:02:37 +00:00
|
|
|
, requests-mock
|
2020-04-24 23:36:52 +00:00
|
|
|
, six
|
2022-12-17 10:02:37 +00:00
|
|
|
, tabulate
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "databricks-cli";
|
2023-04-29 16:46:19 +00:00
|
|
|
version = "0.17.6";
|
2022-12-17 10:02:37 +00:00
|
|
|
format = "setuptools";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2022-12-17 10:02:37 +00:00
|
|
|
disabled = pythonOlder "3.7";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2022-12-17 10:02:37 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "databricks";
|
|
|
|
repo = pname;
|
|
|
|
rev = "refs/tags/${version}";
|
2023-04-29 16:46:19 +00:00
|
|
|
hash = "sha256-K20fhfdJuABqpbm8O8PSA9pIW8Uu1MdlP3r5E49pt6Q=";
|
2022-12-17 10:02:37 +00:00
|
|
|
};
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
click
|
2022-12-17 10:02:37 +00:00
|
|
|
configparser
|
2022-08-12 12:06:08 +00:00
|
|
|
oauthlib
|
2022-12-17 10:02:37 +00:00
|
|
|
pyjwt
|
2020-04-24 23:36:52 +00:00
|
|
|
requests
|
2022-12-17 10:02:37 +00:00
|
|
|
requests-mock
|
2020-04-24 23:36:52 +00:00
|
|
|
six
|
2022-12-17 10:02:37 +00:00
|
|
|
tabulate
|
|
|
|
];
|
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [
|
2022-12-17 10:02:37 +00:00
|
|
|
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"
|
2020-04-24 23:36:52 +00:00
|
|
|
];
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2022-12-17 10:02:37 +00:00
|
|
|
description = "Command line interface for Databricks";
|
2020-04-24 23:36:52 +00:00
|
|
|
homepage = "https://github.com/databricks/databricks-cli";
|
2022-12-17 10:02:37 +00:00
|
|
|
changelog = "https://github.com/databricks/databricks-cli/releases/tag/${version}";
|
2020-04-24 23:36:52 +00:00
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = with maintainers; [ tbenst ];
|
|
|
|
};
|
|
|
|
}
|