about summary refs log tree commit diff
path: root/nixpkgs/pkgs/by-name/x5/x509-limbo/package.nix
blob: 2cb4625e04fa9b4f6ff413e769bdd8c1885c3f67 (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
43
44
45
46
47
48
49
{ lib
, fetchFromGitHub
, python3
, x509-limbo
}:

python3.pkgs.buildPythonPackage {
  pname = "x509-limbo";
  version = "unstable-2024-03-13";
  pyproject = true;

  src = fetchFromGitHub {
    owner = "C2SP";
    repo = "x509-limbo";
    rev = "a04fb05cf132e1405f71c12616cf0aead829909a";
    hash = "sha256-TA4ciHkXg/RKzcIs2bwpx7CxsQDyQMG636Rr74xPsBA=";
  };

  dependencies = with python3.pkgs; [
    flit-core

    requests
    pydantic
    jinja2
    cryptography
    pyopenssl
    pyyaml
    certvalidator
    certifi
  ];

  postInstall = ''
    mkdir -p $out/share
    cp limbo.json $out/share/

    wrapProgram $out/bin/limbo \
      --append-flags "--limbo $out/share/limbo.json"
  '';

  meta = with lib; {
    homepage = "https://x509-limbo.com/";
    description = "A suite of testvectors for X.509 certificate path validation and tools for building them ";
    mainProgram = "limbo";

    license = licenses.asl20;
    platforms = platforms.all;
    maintainers = with maintainers; [ baloo ];
  };
}