summaryrefslogtreecommitdiffstats
path: root/pkgs/by-name/mo/mongoaudit/package.nix
blob: 7e30b64c70a58dc09050446ceb48cec0b3f711fa (plain)
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 (finalAttrs: {
  pname = "mongoaudit";
  version = "0.1.1";
  pyproject = true;

  src = fetchFromGitHub {
    owner = "stampery";
    repo = "mongoaudit";
    tag = finalAttrs.version;
    hash = "sha256-RZBAldCHl7ApYQWhuvs/djhGWuQ+EdpVMCnP0QrfZJ4=";
  };

  build-system = with python3.pkgs; [ setuptools ];

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

  nativeCheckInputs = with python3.pkgs; [ pytestCheckHook ];

  pythonImportsCheck = [ "mongoaudit" ];

  meta = {
    description = "MongoDB auditing and pentesting tool";
    homepage = "https://github.com/stampery/mongoaudit";
    changelog = "https://github.com/stampery/mongoaudit/releases/tag/${finalAttrs.src.tag}";
    license = lib.licenses.mit;
    maintainers = with lib.maintainers; [ fab ];
    mainProgram = "mongoaudit";
  };
})