17 buildPythonPackage rec {
18 pname = "pyhanko-certvalidator";
22 disabled = pythonOlder "3.7";
24 src = fetchFromGitHub {
25 owner = "MatthiasValvekens";
26 repo = "certvalidator";
27 rev = "refs/tags/v${version}";
28 hash = "sha256-uUmsWiN182g+kxrCny7UNLDHdAdqKk64w6vnjmGBNjM=";
32 substituteInPlace pyproject.toml \
33 --replace ', "pytest-runner",' ""
40 propagatedBuildInputs = [
57 "tests/test_crl_client.py"
61 # Look for nonexisting certificates
62 "test_basic_certificate_validator_tls"
63 # Failed to fetch OCSP response from http://ocsp.digicert.com
64 "test_fetch_ocsp_aiohttp"
65 "test_fetch_ocsp_requests"
66 "test_fetch_ocsp_err_requests"
67 # Unable to build a validation path for the certificate "%s" - no issuer matching "%s" was found
68 "test_revocation_mode_hard_aiohttp_autofetch"
69 # The path could not be validated because no revocation information could be found for intermediate certificate 1
70 "test_revocation_mode_hard"
71 # ValueError: Hash algorithm not known for ed448
75 pythonImportsCheck = [
76 "pyhanko_certvalidator"
80 description = "Python library for validating X.509 certificates and paths";
81 homepage = "https://github.com/MatthiasValvekens/certvalidator";
82 changelog = "https://github.com/MatthiasValvekens/certvalidator/blob/v${version}/changelog.md";
83 license = licenses.mit;
84 maintainers = with maintainers; [ wolfangaukang ];