about summary refs log tree commit diff
path: root/nixpkgs/pkgs/by-name/ce/certi/package.nix
blob: 90e929114b4d17eaf3b938168a14f8824680a1cd (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 = "certi";
  version = "0.1.0-unstable-2023-01-27";
  pyproject = true;

  src = fetchFromGitHub {
    owner = "zer1t0";
    repo = "certi";
    # https://github.com/zer1t0/certi/issues/6
    rev = "6cfa656c6c0fcbbe9b9bce847b052c881202354e";
    hash = "sha256-6j/Lwq68qyfEAo5MRibgdomrCO4KEd/DlAEwB+Z52Hc=";
  };

  nativeBuildInputs = with python3.pkgs; [
    setuptools
  ];

  propagatedBuildInputs = with python3.pkgs; [
    cryptography
    impacket
  ];

  pythonImportsCheck = [
    "certilib"
  ];

  meta = with lib; {
    description = "ADCS abuser";
    homepage = "https://github.com/zer1t0/certi";
    license = licenses.agpl3Only;
    maintainers = with maintainers; [ fab ];
    mainProgram = "certi";
  };
}