about summary refs log tree commit diff
path: root/nixpkgs/pkgs/tools/security/tell-me-your-secrets/default.nix
blob: 1d723aae52df83f668772c4baa9055df4473d5d3 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
{ lib
, python3
, fetchFromGitHub
}:

python3.pkgs.buildPythonApplication rec {
  pname = "tell-me-your-secrets";
  version = "2.4.2";
  pyproject = true;

  src = fetchFromGitHub {
    owner = "valayDave";
    repo = "tell-me-your-secrets";
    rev = "refs/tags/v${version}";
    hash = "sha256-3ZJyL/V1dsW6F+PiEhnWpv/Pz2H9/UKSJWDgw68M/Z8=";
  };

  pythonRelaxDeps = [
    "gitignore-parser"
    "pandas"
  ];

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

  propagatedBuildInputs = with python3.pkgs; [
    gitignore-parser
    pandas
    pyyaml
    single-source
  ];

  nativeCheckInputs = with python3.pkgs; [
    pytestCheckHook
  ];

  pythonImportsCheck = [
    "tell_me_your_secrets"
  ];

  meta = with lib; {
    description = "Tools to find secrets from various signatures";
    mainProgram = "tell-me-your-secrets";
    homepage = "https://github.com/valayDave/tell-me-your-secrets";
    changelog = "https://github.com/valayDave/tell-me-your-secrets/blob/${version}/CHANGELOG.md";
    license = licenses.mit;
    maintainers = with maintainers; [ fab ];
  };
}