dbx: format with nixfmt
This commit is contained in:
parent
8bb9b05011
commit
b875091628
|
@ -1,15 +1,13 @@
|
||||||
{ lib
|
{
|
||||||
, fetchFromGitHub
|
lib,
|
||||||
, git
|
fetchFromGitHub,
|
||||||
, python3
|
git,
|
||||||
|
python3,
|
||||||
}:
|
}:
|
||||||
let
|
let
|
||||||
python = python3.override {
|
python = python3.override { packageOverrides = self: super: { pydantic = super.pydantic_1; }; };
|
||||||
packageOverrides = self: super: {
|
in
|
||||||
pydantic = super.pydantic_1;
|
python.pkgs.buildPythonApplication rec {
|
||||||
};
|
|
||||||
};
|
|
||||||
in python.pkgs.buildPythonApplication rec {
|
|
||||||
pname = "dbx";
|
pname = "dbx";
|
||||||
version = "0.8.18";
|
version = "0.8.18";
|
||||||
pyproject = true;
|
pyproject = true;
|
||||||
|
@ -28,67 +26,58 @@ in python.pkgs.buildPythonApplication rec {
|
||||||
"typer"
|
"typer"
|
||||||
];
|
];
|
||||||
|
|
||||||
pythonRemoveDeps = [
|
pythonRemoveDeps = [ "mlflow-skinny" ];
|
||||||
"mlflow-skinny"
|
|
||||||
];
|
|
||||||
|
|
||||||
build-system = with python.pkgs; [
|
build-system = with python.pkgs; [ setuptools ];
|
||||||
setuptools
|
|
||||||
];
|
|
||||||
|
|
||||||
nativeBuildInputs = with python.pkgs; [
|
nativeBuildInputs = with python.pkgs; [ pythonRelaxDepsHook ];
|
||||||
pythonRelaxDepsHook
|
|
||||||
];
|
|
||||||
|
|
||||||
propagatedBuildInputs = with python.pkgs; [
|
propagatedBuildInputs =
|
||||||
aiohttp
|
with python.pkgs;
|
||||||
click
|
[
|
||||||
cookiecutter
|
aiohttp
|
||||||
cryptography
|
click
|
||||||
databricks-cli
|
cookiecutter
|
||||||
jinja2
|
cryptography
|
||||||
mlflow
|
databricks-cli
|
||||||
pathspec
|
jinja2
|
||||||
pydantic
|
mlflow
|
||||||
pyyaml
|
pathspec
|
||||||
requests
|
pydantic
|
||||||
retry
|
pyyaml
|
||||||
rich
|
requests
|
||||||
tenacity
|
retry
|
||||||
typer
|
rich
|
||||||
watchdog
|
tenacity
|
||||||
] ++ typer.optional-dependencies.all;
|
typer
|
||||||
|
watchdog
|
||||||
|
]
|
||||||
|
++ typer.optional-dependencies.all;
|
||||||
|
|
||||||
passthru.optional-dependencies = with python3.pkgs; {
|
passthru.optional-dependencies = with python3.pkgs; {
|
||||||
aws = [
|
aws = [ boto3 ];
|
||||||
boto3
|
|
||||||
];
|
|
||||||
azure = [
|
azure = [
|
||||||
azure-storage-blob
|
azure-storage-blob
|
||||||
azure-identity
|
azure-identity
|
||||||
];
|
];
|
||||||
gcp = [
|
gcp = [ google-cloud-storage ];
|
||||||
google-cloud-storage
|
|
||||||
];
|
|
||||||
};
|
};
|
||||||
|
|
||||||
nativeCheckInputs = [
|
nativeCheckInputs =
|
||||||
git
|
[ git ]
|
||||||
] ++ (with python3.pkgs; [
|
++ (with python3.pkgs; [
|
||||||
pytest-asyncio
|
pytest-asyncio
|
||||||
pytest-mock
|
pytest-mock
|
||||||
pytest-timeout
|
pytest-timeout
|
||||||
pytestCheckHook
|
pytestCheckHook
|
||||||
]);
|
]);
|
||||||
|
|
||||||
preCheck = ''
|
preCheck = ''
|
||||||
export HOME=$(mktemp -d)
|
export HOME=$(mktemp -d)
|
||||||
export PATH="$PATH:$out/bin"
|
export PATH="$PATH:$out/bin"
|
||||||
'';
|
'';
|
||||||
|
|
||||||
pytestFlagsArray = [
|
pytestFlagsArray = [ "tests/unit" ];
|
||||||
"tests/unit"
|
|
||||||
];
|
|
||||||
|
|
||||||
disabledTests = [
|
disabledTests = [
|
||||||
# Fails because of dbfs CLI wrong call
|
# Fails because of dbfs CLI wrong call
|
||||||
|
@ -117,9 +106,7 @@ in python.pkgs.buildPythonApplication rec {
|
||||||
"tests/unit/utils/test_common.py"
|
"tests/unit/utils/test_common.py"
|
||||||
];
|
];
|
||||||
|
|
||||||
pythonImportsCheck = [
|
pythonImportsCheck = [ "dbx" ];
|
||||||
"dbx"
|
|
||||||
];
|
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = "CLI tool for advanced Databricks jobs management";
|
description = "CLI tool for advanced Databricks jobs management";
|
||||||
|
|
Loading…
Reference in New Issue
Block a user