Merge pull request #119126 from fabaff/pycomfoconnect
[NixPkgs.git] / pkgs / development / python-modules / cert-chain-resolver / default.nix
blobeea43d5c7393724b505395366860d4bab9d4d0e3
1 { lib
2 , fetchFromGitHub
3 , buildPythonPackage
4 , pytestCheckHook
5 , pytest-mock
6 , cryptography
7 }:
9 buildPythonPackage rec {
10   pname = "cert-chain-resolver";
11   version = "1.0.1";
13   src = fetchFromGitHub {
14     owner = "rkoopmans";
15     repo = "python-certificate-chain-resolver";
16     rev = version;
17     sha256 = "1kmig4ksbx1wvgcjn4r9jjg2pn1ag5rq871bjwxkp9kslb3x3d1l";
18   };
20   propagatedBuildInputs = [ cryptography ];
22   checkInputs = [ pytestCheckHook pytest-mock ];
24   # online tests
25   disabledTests = [
26     "test_cert_returns_completed_chain"
27     "test_display_flag_is_properly_formatted"
28   ];
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   };