Commit b635bc75 authored by Peder Bergebakken Sundt's avatar Peder Bergebakken Sundt
Browse files

deepsecrets: modernize, enable tests

parent 87214855
Loading
Loading
Loading
Loading
+16 −5
Original line number Diff line number Diff line
@@ -22,11 +22,11 @@ python3.pkgs.buildPythonApplication rec {
    "mmh3"
  ];

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

  propagatedBuildInputs = with python3.pkgs; [
  dependencies = with python3.pkgs; [
    dotwiz
    mmh3
    ordered-set
@@ -40,12 +40,23 @@ python3.pkgs.buildPythonApplication rec {
    "deepsecrets"
  ];

  meta = with lib; {
  nativeCheckInputs = with python3.pkgs; [
    pytestCheckHook
  ];

  disabledTests = [
    # assumes package is built in /app (docker?), and not /build/${src.name} (nix sandbox)
    "test_1_cli"
    "test_config"
    "test_basic_info"
  ];

  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 = licenses.mit;
    maintainers = with maintainers; [ fab ];
    license = lib.licenses.mit;
    maintainers = with lib.maintainers; [ fab ];
  };
}