nixpkgs/pkgs/applications/misc/dbx/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

80 lines
1.3 KiB
Nix
Raw Normal View History

2022-07-20 16:39:18 +02:00
{ buildPythonPackage
, fetchFromGitHub
, databricks-cli
, scipy
, path
2022-07-20 16:39:18 +02:00
, pathspec
, pydantic
, protobuf
, tqdm
, mlflow
, azure-identity
, ruamel-yaml
, emoji
, cookiecutter
, retry
, azure-mgmt-datafactory
, azure-mgmt-subscription
, pytestCheckHook
, pytest-asyncio
, pytest-timeout
2022-07-31 11:10:14 +02:00
, pytest-mock
2022-07-20 16:39:18 +02:00
, lib
2022-07-31 11:10:14 +02:00
, git
2022-07-20 16:39:18 +02:00
}:
buildPythonPackage rec {
pname = "dbx";
2022-07-31 11:10:14 +02:00
version = "0.6.8";
2022-07-20 16:39:18 +02:00
src = fetchFromGitHub {
owner = "databrickslabs";
repo = "dbx";
rev = "v${version}";
2022-07-31 11:10:14 +02:00
sha256 = "sha256-Ou+VdHFVQzmsxJiyaeDd/+FqHvJZeNGB+OXyoagJwtk=";
2022-07-20 16:39:18 +02:00
};
propagatedBuildInputs = [
databricks-cli
scipy
path
2022-07-20 16:39:18 +02:00
pathspec
pydantic
protobuf
tqdm
mlflow
azure-identity
ruamel-yaml
emoji
cookiecutter
retry
azure-mgmt-datafactory
azure-mgmt-subscription
];
checkInputs = [
pytestCheckHook
pytest-asyncio
pytest-timeout
2022-07-31 11:10:14 +02:00
pytest-mock
git
2022-07-20 16:39:18 +02:00
];
2022-07-31 11:10:14 +02:00
preCheck = ''
export HOME=$TMPDIR
'';
2022-07-20 16:39:18 +02:00
disabledTests = [
# fails because of dbfs CLI wrong call
"test_dbfs_unknown_user"
"test_dbfs_no_root"
];
meta = with lib; {
homepage = "https://github.com/databrickslabs/dbx";
description = "CLI tool for advanced Databricks jobs management";
license = licenses.databricks-dbx;
maintainers = with maintainers; [ GuillaumeDesforges ];
};
}