mirror of
https://github.com/CHN-beta/nixpkgs.git
synced 2026-01-14 03:50:21 +08:00
checkInputs used to be added to nativeBuildInputs. Now we have nativeCheckInputs to do that instead. Doing this treewide change allows to keep hashes identical to before the introduction of nativeCheckInputs.
67 lines
1.2 KiB
Nix
67 lines
1.2 KiB
Nix
{ lib
|
|
, buildPythonPackage
|
|
, click
|
|
, configparser
|
|
, decorator
|
|
, fetchFromGitHub
|
|
, mock
|
|
, oauthlib
|
|
, pyjwt
|
|
, pytestCheckHook
|
|
, pythonOlder
|
|
, requests
|
|
, requests-mock
|
|
, six
|
|
, tabulate
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "databricks-cli";
|
|
version = "0.17.4";
|
|
format = "setuptools";
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "databricks";
|
|
repo = pname;
|
|
rev = "refs/tags/${version}";
|
|
hash = "sha256-srrNxiOGrU1u5shssRssr8Hwdy20U4coOAjYsT7eTSA=";
|
|
};
|
|
|
|
propagatedBuildInputs = [
|
|
click
|
|
configparser
|
|
oauthlib
|
|
pyjwt
|
|
requests
|
|
requests-mock
|
|
six
|
|
tabulate
|
|
];
|
|
|
|
nativeCheckInputs = [
|
|
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"
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = "Command line interface for Databricks";
|
|
homepage = "https://github.com/databricks/databricks-cli";
|
|
changelog = "https://github.com/databricks/databricks-cli/releases/tag/${version}";
|
|
license = licenses.asl20;
|
|
maintainers = with maintainers; [ tbenst ];
|
|
};
|
|
}
|