2021-01-15 22:18:51 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
2022-04-27 09:35:20 +00:00
|
|
|
, cryptography
|
|
|
|
, fetchFromGitHub
|
2021-01-15 22:18:51 +00:00
|
|
|
, pytestCheckHook
|
|
|
|
, pytest-mock
|
2022-04-27 09:35:20 +00:00
|
|
|
, pythonOlder
|
|
|
|
, six
|
2021-01-15 22:18:51 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "cert-chain-resolver";
|
2023-08-22 20:05:09 +00:00
|
|
|
version = "1.1.0";
|
2022-04-27 09:35:20 +00:00
|
|
|
format = "setuptools";
|
|
|
|
|
|
|
|
disabled = pythonOlder "3.7";
|
2021-01-15 22:18:51 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "rkoopmans";
|
|
|
|
repo = "python-certificate-chain-resolver";
|
2023-08-22 20:05:09 +00:00
|
|
|
rev = "refs/tags/${version}";
|
|
|
|
hash = "sha256-2itpu/Ap5GNnqAiw3Cp+8rndreWlwfPd+WwM99G7U2E=";
|
2021-01-15 22:18:51 +00:00
|
|
|
};
|
|
|
|
|
2022-04-27 09:35:20 +00:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
cryptography
|
|
|
|
];
|
2021-01-15 22:18:51 +00:00
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [
|
2022-04-27 09:35:20 +00:00
|
|
|
pytestCheckHook
|
|
|
|
pytest-mock
|
|
|
|
six
|
|
|
|
];
|
2021-01-15 22:18:51 +00:00
|
|
|
|
|
|
|
disabledTests = [
|
2022-04-27 09:35:20 +00:00
|
|
|
# Tests require network access
|
2021-01-15 22:18:51 +00:00
|
|
|
"test_cert_returns_completed_chain"
|
|
|
|
"test_display_flag_is_properly_formatted"
|
|
|
|
];
|
|
|
|
|
2022-04-27 09:35:20 +00:00
|
|
|
pythonImportsCheck = [
|
|
|
|
"cert_chain_resolver"
|
|
|
|
];
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
|
|
|
description = "Resolve / obtain the certificate intermediates of a x509 certificate";
|
2022-04-27 09:35:20 +00:00
|
|
|
homepage = "https://github.com/rkoopmans/python-certificate-chain-resolver";
|
2023-08-22 20:05:09 +00:00
|
|
|
changelog = "https://github.com/rkoopmans/python-certificate-chain-resolver/blob/${version}/CHANGELOG.md";
|
2021-01-15 22:18:51 +00:00
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ veehaitch ];
|
|
|
|
};
|
|
|
|
}
|