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

python3.pkgs.buildPythonApplication rec {
  pname = "mongoaudit";
  version = "0.1.1";

  disabled = python3.pythonOlder "3.8";

  src = fetchFromGitHub {
    owner = "stampery";
    repo = pname;
    rev = version;
    sha256 = "17k4vw5d3kr961axl49ywid4cf3n7zxvm885c4lv15w7s2al1425";
  };

  propagatedBuildInputs = with python3.pkgs; [
    pymongo
    setuptools
    urwid
  ];

  checkInputs = with python3.pkgs; [
    pytestCheckHook
  ];

  pythonImportsCheck = [
    "mongoaudit"
  ];

  meta = with lib; {
    description = "MongoDB auditing and pentesting tool";
    homepage = "https://github.com/stampery/mongoaudit";
    license = with licenses; [ mit ];
    maintainers = with maintainers; [ fab ];
  };
}