Unverified Commit 8f2bef83 authored by Aleksana's avatar Aleksana Committed by GitHub
Browse files

[Backport release-25.05] deepsecrets: refactor and mark as broken on darwin (#408966)

parents 7004e2ad d4d2192a
Loading
Loading
Loading
Loading
+7 −11
Original line number Diff line number Diff line
{
  lib,
  stdenv,
  python3,
  fetchFromGitHub,
}:
@@ -22,9 +23,7 @@ python3.pkgs.buildPythonApplication rec {
    "mmh3"
  ];

  build-system = with python3.pkgs; [
    poetry-core
  ];
  build-system = with python3.pkgs; [ poetry-core ];

  dependencies = with python3.pkgs; [
    dotwiz
@@ -36,13 +35,7 @@ python3.pkgs.buildPythonApplication rec {
    regex
  ];

  pythonImportsCheck = [
    "deepsecrets"
  ];

  nativeCheckInputs = with python3.pkgs; [
    pytestCheckHook
  ];
  nativeCheckInputs = with python3.pkgs; [ pytestCheckHook ];

  disabledTests = [
    # assumes package is built in /app (docker?), and not /build/${src.name} (nix sandbox)
@@ -51,12 +44,15 @@ python3.pkgs.buildPythonApplication rec {
    "test_basic_info"
  ];

  pythonImportsCheck = [ "deepsecrets" ];

  meta = {
    description = "Secrets scanner that understands code";
    mainProgram = "deepsecrets";
    homepage = "https://github.com/avito-tech/deepsecrets";
    changelog = "https://github.com/avito-tech/deepsecrets/releases/tag/v${version}";
    license = lib.licenses.mit;
    maintainers = with lib.maintainers; [ fab ];
    mainProgram = "deepsecrets";
    broken = stdenv.hostPlatform.isDarwin;
  };
}