depot/third_party/nixpkgs/pkgs/development/python-modules/cert-chain-resolver/default.nix
Default email fa5436e0a7 Project import generated by Copybara.
GitOrigin-RevId: e8057b67ebf307f01bdcc8fba94d94f75039d1f6
2024-06-05 17:53:02 +02:00

50 lines
1.2 KiB
Nix

{
lib,
buildPythonPackage,
cryptography,
fetchFromGitHub,
pytestCheckHook,
pytest-mock,
pythonOlder,
six,
}:
buildPythonPackage rec {
pname = "cert-chain-resolver";
version = "1.1.0";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "rkoopmans";
repo = "python-certificate-chain-resolver";
rev = "refs/tags/${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 = with lib; {
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 = licenses.mit;
maintainers = with maintainers; [ veehaitch ];
};
}