depot/third_party/nixpkgs/pkgs/development/python-modules/cert-chain-resolver/default.nix
Default email 22017988c6 Project import generated by Copybara.
GitOrigin-RevId: c777cdf5c564015d5f63b09cc93bef4178b19b01
2022-04-27 11:35:20 +02:00

51 lines
1 KiB
Nix

{ lib
, buildPythonPackage
, cryptography
, fetchFromGitHub
, pytestCheckHook
, pytest-mock
, 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;
hash = "sha256-NLTRx6J6pjs7lyschHN5KtgrnpQpEyvZ2zz0pSd5sc4=";
};
propagatedBuildInputs = [
cryptography
];
checkInputs = [
pytestCheckHook
pytest-mock
six
];
disabledTests = [
# Tests require network access
"test_cert_returns_completed_chain"
"test_display_flag_is_properly_formatted"
];
pythonImportsCheck = [
"cert_chain_resolver"
];
meta = with lib; {
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 ];
};
}