Commit b8750916 authored by Fabian Affolter's avatar Fabian Affolter
Browse files

dbx: format with nixfmt

parent 8bb9b050
Loading
Loading
Loading
Loading
+45 −58
Original line number Diff line number Diff line
{ lib
, fetchFromGitHub
, git
, python3
{
  lib,
  fetchFromGitHub,
  git,
  python3,
}:
let
  python = python3.override {
    packageOverrides = self: super: {
      pydantic = super.pydantic_1;
    };
  };
in python.pkgs.buildPythonApplication rec {
  python = python3.override { packageOverrides = self: super: { pydantic = super.pydantic_1; }; };
in
python.pkgs.buildPythonApplication rec {
  pname = "dbx";
  version = "0.8.18";
  pyproject = true;
@@ -28,19 +26,15 @@ in python.pkgs.buildPythonApplication rec {
    "typer"
  ];

  pythonRemoveDeps = [
    "mlflow-skinny"
  ];
  pythonRemoveDeps = [ "mlflow-skinny" ];

  build-system = with python.pkgs; [
    setuptools
  ];
  build-system = with python.pkgs; [ setuptools ];

  nativeBuildInputs = with python.pkgs; [
    pythonRelaxDepsHook
  ];
  nativeBuildInputs = with python.pkgs; [ pythonRelaxDepsHook ];

  propagatedBuildInputs = with python.pkgs; [
  propagatedBuildInputs =
    with python.pkgs;
    [
      aiohttp
      click
      cookiecutter
@@ -57,24 +51,21 @@ in python.pkgs.buildPythonApplication rec {
      tenacity
      typer
      watchdog
  ] ++ typer.optional-dependencies.all;
    ]
    ++ typer.optional-dependencies.all;

  passthru.optional-dependencies = with python3.pkgs; {
    aws = [
      boto3
    ];
    aws = [ boto3 ];
    azure = [
      azure-storage-blob
      azure-identity
    ];
    gcp = [
      google-cloud-storage
    ];
    gcp = [ google-cloud-storage ];
  };

  nativeCheckInputs = [
    git
  ] ++ (with python3.pkgs; [
  nativeCheckInputs =
    [ git ]
    ++ (with python3.pkgs; [
      pytest-asyncio
      pytest-mock
      pytest-timeout
@@ -86,9 +77,7 @@ in python.pkgs.buildPythonApplication rec {
    export PATH="$PATH:$out/bin"
  '';

  pytestFlagsArray = [
    "tests/unit"
  ];
  pytestFlagsArray = [ "tests/unit" ];

  disabledTests = [
    # Fails because of dbfs CLI wrong call
@@ -117,9 +106,7 @@ in python.pkgs.buildPythonApplication rec {
    "tests/unit/utils/test_common.py"
  ];

  pythonImportsCheck = [
    "dbx"
  ];
  pythonImportsCheck = [ "dbx" ];

  meta = with lib; {
    description = "CLI tool for advanced Databricks jobs management";