about summary refs log tree commit diff
path: root/nixpkgs/pkgs/tools/security/stacs/default.nix
blob: 205d85f0622e9bb28cd2071b4661b03336cc29d9 (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
{ lib
, fetchFromGitHub
, python3
}:

python3.pkgs.buildPythonApplication rec {
  pname = "stacs";
  version = "0.2.0";

  src = fetchFromGitHub {
    owner = "stacscan";
    repo = pname;
    rev = version;
    sha256 = "00ZYdpJktqUXdzPcouHyZcOQyFm7jdFNVuDqsufOviE=";
  };

  nativeBuildInputs = with python3.pkgs; [
    setupmeta
  ];

  propagatedBuildInputs = with python3.pkgs; [
    click
    pydantic_1
    typing-extensions
    yara-python
  ];

  nativeCheckInputs = with python3.pkgs; [
    pytestCheckHook
  ];

  pythonImportsCheck = [
    "stacs"
  ];

  meta = with lib; {
    description = "Static token and credential scanner";
    homepage = "https://github.com/stacscan/stacs";
    license = with licenses; [ bsd3 ];
    maintainers = with maintainers; [ fab ];
  };
}