summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/certipy/default.nix
blob: 37ff90a82f2fccc098910407bfe44dc6d36b0df7 (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
{
  lib,
  buildPythonPackage,
  cryptography,
  fetchPypi,
  flask,
  pytestCheckHook,
  requests,
  setuptools-scm,
}:

buildPythonPackage (finalAttrs: {
  pname = "certipy";
  version = "0.2.3";
  pyproject = true;

  src = fetchPypi {
    inherit (finalAttrs) pname version;
    hash = "sha256-TocB5qLygeehVMLzaM/07fN0AJCE0peIy+jDg4iXeE8=";
  };

  build-system = [ setuptools-scm ];

  dependencies = [ cryptography ];

  nativeCheckInputs = [
    flask
    pytestCheckHook
    requests
  ];

  pythonImportsCheck = [ "certipy" ];

  meta = {
    description = "Utility to create and sign CAs and certificates";
    homepage = "https://github.com/LLNL/certipy";
    license = lib.licenses.bsd3;
    maintainers = with lib.maintainers; [ isgy ];
    mainProgram = "certipy";
  };
})