summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/certihound/default.nix
blob: 2d9d7c3e17876caae64437f6c280f14ea2a46da6 (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
40
41
42
43
44
45
46
{
  lib,
  buildPythonPackage,
  fetchPypi,
  ldap3,
  impacket,
  cryptography,
  pydantic,
  click,
  rich,
  setuptools,
}:

buildPythonPackage (finalAttrs: {
  pname = "certihound";
  version = "0.3.2";
  pyproject = true;

  src = fetchPypi {
    inherit (finalAttrs) pname version;
    hash = "sha256-uSoI4bz5h3Guy8TtfHjsk0zo9LNL2BJ5ZRFMFPk2Up0=";
  };

  build-system = [ setuptools ];

  dependencies = [
    ldap3
    impacket
    cryptography
    pydantic
    click
    rich
  ];

  # Tests are stripped in pypi
  doCheck = false;

  pythonImportsCheck = [ "certihound" ];

  meta = {
    homepage = "https://github.com/0x0Trace/Certihound";
    description = "Active Directory Certificate Services (ADCS) enumeration library with BloodHound CE v6 export support";
    license = lib.licenses.mit;
    maintainers = with lib.maintainers; [ letgamer ];
  };
})