From 4dfea621a977acbfa483670a65da244057b64a1c Mon Sep 17 00:00:00 2001 From: Hanketsu Date: Fri, 28 Feb 2025 09:45:52 +0100 Subject: battering: Add python-pyhanko-certvalidator. * battering/packages/python-xyz.scm (python-pyhanko-certvalidator): New variable. --- battering/packages/python-xyz.scm | 38 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) diff --git a/battering/packages/python-xyz.scm b/battering/packages/python-xyz.scm index 39274bd..5ce31c7 100644 --- a/battering/packages/python-xyz.scm +++ b/battering/packages/python-xyz.scm @@ -12,6 +12,7 @@ #:use-module (gnu packages check) #:use-module (gnu packages pdf) #:use-module (gnu packages python-build) + #:use-module (gnu packages python-check) #:use-module (gnu packages python-crypto) #:use-module (gnu packages python-science) #:use-module (gnu packages python-web) @@ -240,3 +241,40 @@ Linux/BSD.") parsing, classifying and composing URIs and URI references, largely replacing the Python Standard Library’s @code{urllib.parse} module.") (license license:expat))) + +(define-public python-pyhanko-certvalidator + (package + (name "python-pyhanko-certvalidator") + (version "0.26.5") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/MatthiasValvekens/certvalidator") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "1c50bsibr4izvbg2wsx8k3l0vkjbp0caq3jaxnnrlkpwzzxfgzgv")))) + (build-system pyproject-build-system) + (propagated-inputs (list python-asn1crypto + python-oscrypto + python-cryptography + python-uritools + python-requests + python-aiohttp)) + (native-inputs (list python-pytest + python-pytest-cov + python-freezegun + python-pytest-aiohttp + python-types-requests + python-setuptools + python-wheel + nss-certs-for-test)) + (home-page "https://github.com/MatthiasValvekens/certvalidator") + (synopsis + "Python library for validating X.509 certificates and paths") + (description + "@code{pyhanko-certvalidator} is a Python library for validating X.509 +certificates paths. It supports various options, including: validation at a +specific moment in time, whitelisting and revocation checks.") + (license license:expat))) -- cgit v1.2.3