1{ lib 2, fetchFromGitHub 3, buildPythonPackage 4, pytestCheckHook 5, pytest-mock 6, cryptography 7}: 8 9buildPythonPackage rec { 10 pname = "cert-chain-resolver"; 11 version = "1.0.1"; 12 13 src = fetchFromGitHub { 14 owner = "rkoopmans"; 15 repo = "python-certificate-chain-resolver"; 16 rev = version; 17 sha256 = "1kmig4ksbx1wvgcjn4r9jjg2pn1ag5rq871bjwxkp9kslb3x3d1l"; 18 }; 19 20 propagatedBuildInputs = [ cryptography ]; 21 22 checkInputs = [ pytestCheckHook pytest-mock ]; 23 24 # online tests 25 disabledTests = [ 26 "test_cert_returns_completed_chain" 27 "test_display_flag_is_properly_formatted" 28 ]; 29 30 meta = with lib; { 31 homepage = "https://github.com/rkoopmans/python-certificate-chain-resolver"; 32 description = "Resolve / obtain the certificate intermediates of a x509 certificate"; 33 license = licenses.mit; 34 maintainers = with maintainers; [ veehaitch ]; 35 }; 36}