Merge pull request #307098 from r-ryantm/auto-update/cilium-cli
[NixPkgs.git] / pkgs / development / python-modules / cert-chain-resolver / default.nix
blobde89116b4c92ff357d941215621144159144d58e
1 { lib
2 , buildPythonPackage
3 , cryptography
4 , fetchFromGitHub
5 , pytestCheckHook
6 , pytest-mock
7 , pythonOlder
8 , six
9 }:
11 buildPythonPackage rec {
12   pname = "cert-chain-resolver";
13   version = "1.1.0";
14   format = "setuptools";
16   disabled = pythonOlder "3.7";
18   src = fetchFromGitHub {
19     owner = "rkoopmans";
20     repo = "python-certificate-chain-resolver";
21     rev = "refs/tags/${version}";
22     hash = "sha256-2itpu/Ap5GNnqAiw3Cp+8rndreWlwfPd+WwM99G7U2E=";
23   };
25   propagatedBuildInputs = [
26     cryptography
27   ];
29   nativeCheckInputs = [
30     pytestCheckHook
31     pytest-mock
32     six
33   ];
35   disabledTests = [
36     # Tests require network access
37     "test_cert_returns_completed_chain"
38     "test_display_flag_is_properly_formatted"
39   ];
41   pythonImportsCheck = [
42     "cert_chain_resolver"
43   ];
45   meta = with lib; {
46     description = "Resolve / obtain the certificate intermediates of a x509 certificate";
47     mainProgram = "cert-chain-resolver";
48     homepage = "https://github.com/rkoopmans/python-certificate-chain-resolver";
49     changelog = "https://github.com/rkoopmans/python-certificate-chain-resolver/blob/${version}/CHANGELOG.md";
50     license = licenses.mit;
51     maintainers = with maintainers; [ veehaitch ];
52   };