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