commit
d96b7cb160
2 changed files with 47 additions and 47 deletions
|
@ -1,78 +1,78 @@
|
||||||
{ buildPythonPackage
|
{ lib
|
||||||
, fetchFromGitHub
|
, fetchFromGitHub
|
||||||
, databricks-cli
|
|
||||||
, scipy
|
|
||||||
, path
|
|
||||||
, pathspec
|
|
||||||
, pydantic
|
|
||||||
, protobuf
|
|
||||||
, tqdm
|
|
||||||
, mlflow
|
|
||||||
, azure-identity
|
|
||||||
, ruamel-yaml
|
|
||||||
, emoji
|
|
||||||
, cookiecutter
|
|
||||||
, retry
|
|
||||||
, azure-mgmt-datafactory
|
|
||||||
, azure-mgmt-subscription
|
|
||||||
, pytestCheckHook
|
|
||||||
, pytest-asyncio
|
|
||||||
, pytest-timeout
|
|
||||||
, pytest-mock
|
|
||||||
, lib
|
|
||||||
, git
|
, git
|
||||||
|
, python3
|
||||||
}:
|
}:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
python3.pkgs.buildPythonApplication rec {
|
||||||
pname = "dbx";
|
pname = "dbx";
|
||||||
version = "0.6.8";
|
version = "0.7.6";
|
||||||
|
format = "setuptools";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "databrickslabs";
|
owner = "databrickslabs";
|
||||||
repo = "dbx";
|
repo = "dbx";
|
||||||
rev = "v${version}";
|
rev = "v${version}";
|
||||||
sha256 = "sha256-Ou+VdHFVQzmsxJiyaeDd/+FqHvJZeNGB+OXyoagJwtk=";
|
hash = "sha256-P/cniy0xYaDoUbKdvV7KCubCpmOAhYp3cg2VBRA+a6I=";
|
||||||
};
|
};
|
||||||
|
|
||||||
propagatedBuildInputs = [
|
propagatedBuildInputs = with python3.pkgs; [
|
||||||
|
aiohttp
|
||||||
|
click
|
||||||
|
cookiecutter
|
||||||
|
cryptography
|
||||||
databricks-cli
|
databricks-cli
|
||||||
scipy
|
jinja2
|
||||||
path
|
mlflow
|
||||||
pathspec
|
pathspec
|
||||||
pydantic
|
pydantic
|
||||||
protobuf
|
pyyaml
|
||||||
tqdm
|
requests
|
||||||
mlflow
|
|
||||||
azure-identity
|
|
||||||
ruamel-yaml
|
|
||||||
emoji
|
|
||||||
cookiecutter
|
|
||||||
retry
|
retry
|
||||||
azure-mgmt-datafactory
|
rich
|
||||||
azure-mgmt-subscription
|
typer
|
||||||
];
|
watchdog
|
||||||
|
] ++ typer.optional-dependencies.all;
|
||||||
|
|
||||||
checkInputs = [
|
checkInputs = [
|
||||||
pytestCheckHook
|
|
||||||
pytest-asyncio
|
|
||||||
pytest-timeout
|
|
||||||
pytest-mock
|
|
||||||
git
|
git
|
||||||
];
|
] ++ (with python3.pkgs; [
|
||||||
|
pytest-asyncio
|
||||||
|
pytest-mock
|
||||||
|
pytest-timeout
|
||||||
|
pytestCheckHook
|
||||||
|
]);
|
||||||
|
|
||||||
preCheck = ''
|
postPatch = ''
|
||||||
export HOME=$TMPDIR
|
substituteInPlace setup.py \
|
||||||
|
--replace "mlflow-skinny>=1.28.0,<=2.0.0" "mlflow" \
|
||||||
|
--replace "rich==12.5.1" "rich"
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
preCheck = ''
|
||||||
|
export HOME=$(mktemp -d)
|
||||||
|
export PATH="$PATH:$out/bin"
|
||||||
|
'';
|
||||||
|
|
||||||
|
pytestFlagsArray = [
|
||||||
|
"tests/unit"
|
||||||
|
];
|
||||||
|
|
||||||
disabledTests = [
|
disabledTests = [
|
||||||
# fails because of dbfs CLI wrong call
|
# Fails because of dbfs CLI wrong call
|
||||||
"test_dbfs_unknown_user"
|
"test_dbfs_unknown_user"
|
||||||
"test_dbfs_no_root"
|
"test_dbfs_no_root"
|
||||||
|
# Requires pylint, prospector, pydocstyle
|
||||||
|
"test_python_basic_sanity_check"
|
||||||
|
];
|
||||||
|
|
||||||
|
pythonImportsCheck = [
|
||||||
|
"dbx"
|
||||||
];
|
];
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
homepage = "https://github.com/databrickslabs/dbx";
|
|
||||||
description = "CLI tool for advanced Databricks jobs management";
|
description = "CLI tool for advanced Databricks jobs management";
|
||||||
|
homepage = "https://github.com/databrickslabs/dbx";
|
||||||
license = licenses.databricks-dbx;
|
license = licenses.databricks-dbx;
|
||||||
maintainers = with maintainers; [ GuillaumeDesforges ];
|
maintainers = with maintainers; [ GuillaumeDesforges ];
|
||||||
};
|
};
|
||||||
|
|
|
@ -3693,7 +3693,7 @@ with pkgs;
|
||||||
|
|
||||||
dbus-broker = callPackage ../os-specific/linux/dbus-broker { };
|
dbus-broker = callPackage ../os-specific/linux/dbus-broker { };
|
||||||
|
|
||||||
dbx = python3Packages.callPackage ../applications/misc/dbx { };
|
dbx = callPackage ../applications/misc/dbx { };
|
||||||
|
|
||||||
ioport = callPackage ../os-specific/linux/ioport {};
|
ioport = callPackage ../os-specific/linux/ioport {};
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue