1{ 2 lib, 3 buildPythonPackage, 4 cryptography, 5 fetchFromGitHub, 6 pytestCheckHook, 7 pytest-mock, 8 pythonOlder, 9 six, 10}: 11 12buildPythonPackage rec { 13 pname = "cert-chain-resolver"; 14 version = "1.1.0"; 15 format = "setuptools"; 16 17 disabled = pythonOlder "3.7"; 18 19 src = fetchFromGitHub { 20 owner = "rkoopmans"; 21 repo = "python-certificate-chain-resolver"; 22 tag = version; 23 hash = "sha256-2itpu/Ap5GNnqAiw3Cp+8rndreWlwfPd+WwM99G7U2E="; 24 }; 25 26 propagatedBuildInputs = [ cryptography ]; 27 28 nativeCheckInputs = [ 29 pytestCheckHook 30 pytest-mock 31 six 32 ]; 33 34 disabledTests = [ 35 # Tests require network access 36 "test_cert_returns_completed_chain" 37 "test_display_flag_is_properly_formatted" 38 ]; 39 40 pythonImportsCheck = [ "cert_chain_resolver" ]; 41 42 meta = with lib; { 43 description = "Resolve / obtain the certificate intermediates of a x509 certificate"; 44 mainProgram = "cert-chain-resolver"; 45 homepage = "https://github.com/rkoopmans/python-certificate-chain-resolver"; 46 changelog = "https://github.com/rkoopmans/python-certificate-chain-resolver/blob/${version}/CHANGELOG.md"; 47 license = licenses.mit; 48 maintainers = with maintainers; [ veehaitch ]; 49 }; 50}