summary refs log tree commit diff
path: root/pkgs/development/python-modules/cert-chain-resolver/default.nix
blob: eea43d5c7393724b505395366860d4bab9d4d0e3 (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
{ lib
, fetchFromGitHub
, buildPythonPackage
, pytestCheckHook
, pytest-mock
, cryptography
}:

buildPythonPackage rec {
  pname = "cert-chain-resolver";
  version = "1.0.1";

  src = fetchFromGitHub {
    owner = "rkoopmans";
    repo = "python-certificate-chain-resolver";
    rev = version;
    sha256 = "1kmig4ksbx1wvgcjn4r9jjg2pn1ag5rq871bjwxkp9kslb3x3d1l";
  };

  propagatedBuildInputs = [ cryptography ];

  checkInputs = [ pytestCheckHook pytest-mock ];

  # online tests
  disabledTests = [
    "test_cert_returns_completed_chain"
    "test_display_flag_is_properly_formatted"
  ];

  meta = with lib; {
    homepage = "https://github.com/rkoopmans/python-certificate-chain-resolver";
    description = "Resolve / obtain the certificate intermediates of a x509 certificate";
    license = licenses.mit;
    maintainers = with maintainers; [ veehaitch ];
  };
}