diff --git a/pkgs/development/python-modules/cert-chain-resolver/default.nix b/pkgs/development/python-modules/cert-chain-resolver/default.nix index eea43d5c7393..6491749498bd 100644 --- a/pkgs/development/python-modules/cert-chain-resolver/default.nix +++ b/pkgs/development/python-modules/cert-chain-resolver/default.nix @@ -1,35 +1,50 @@ { lib -, fetchFromGitHub , buildPythonPackage +, cryptography +, fetchFromGitHub , pytestCheckHook , pytest-mock -, cryptography +, pythonOlder +, six }: buildPythonPackage rec { pname = "cert-chain-resolver"; version = "1.0.1"; + format = "setuptools"; + + disabled = pythonOlder "3.7"; src = fetchFromGitHub { owner = "rkoopmans"; repo = "python-certificate-chain-resolver"; rev = version; - sha256 = "1kmig4ksbx1wvgcjn4r9jjg2pn1ag5rq871bjwxkp9kslb3x3d1l"; + hash = "sha256-NLTRx6J6pjs7lyschHN5KtgrnpQpEyvZ2zz0pSd5sc4="; }; - propagatedBuildInputs = [ cryptography ]; + propagatedBuildInputs = [ + cryptography + ]; - checkInputs = [ pytestCheckHook pytest-mock ]; + checkInputs = [ + pytestCheckHook + pytest-mock + six + ]; - # online tests disabledTests = [ + # Tests require network access "test_cert_returns_completed_chain" "test_display_flag_is_properly_formatted" ]; + pythonImportsCheck = [ + "cert_chain_resolver" + ]; + meta = with lib; { - homepage = "https://github.com/rkoopmans/python-certificate-chain-resolver"; description = "Resolve / obtain the certificate intermediates of a x509 certificate"; + homepage = "https://github.com/rkoopmans/python-certificate-chain-resolver"; license = licenses.mit; maintainers = with maintainers; [ veehaitch ]; };