blob: a87b05763c628a59fc41bb36d932e83685c03d74 (
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
47
|
{
lib,
buildPythonPackage,
cryptography,
fetchFromGitHub,
pytestCheckHook,
pytest-mock,
six,
}:
buildPythonPackage rec {
pname = "cert-chain-resolver";
version = "1.1.0";
format = "setuptools";
src = fetchFromGitHub {
owner = "rkoopmans";
repo = "python-certificate-chain-resolver";
tag = version;
hash = "sha256-2itpu/Ap5GNnqAiw3Cp+8rndreWlwfPd+WwM99G7U2E=";
};
propagatedBuildInputs = [ cryptography ];
nativeCheckInputs = [
pytestCheckHook
pytest-mock
six
];
disabledTests = [
# Tests require network access
"test_cert_returns_completed_chain"
"test_display_flag_is_properly_formatted"
];
pythonImportsCheck = [ "cert_chain_resolver" ];
meta = {
description = "Resolve / obtain the certificate intermediates of a x509 certificate";
mainProgram = "cert-chain-resolver";
homepage = "https://github.com/rkoopmans/python-certificate-chain-resolver";
changelog = "https://github.com/rkoopmans/python-certificate-chain-resolver/blob/${version}/CHANGELOG.md";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ veehaitch ];
};
}
|