Subject: [PATCH 1/2] gnu: python-certauth: Fix build.

From: Felix Gruber <[email-masked]>
Date: Sat, 25 Jan 2025 18:42:59 +0000

* gnu/packages/python-crypto.scm (python-certauth): Fix build.
[arguments]: Disable failing tests.
[native-inputs]: Add python-setuptools and python-wheel.

Change-Id: I623638539fa25d4178fd4b0b4c201e5f91172542
---
 gnu/packages/python-crypto.scm | 19 +++++++++++++++++--
 1 file changed, 17 insertions(+), 2 deletions(-)

diff --git a/gnu/packages/python-crypto.scm b/gnu/packages/python-crypto.scm
index 6aa8e83d4d..849ec18c4b 100644
--- a/gnu/packages/python-crypto.scm
+++ b/gnu/packages/python-crypto.scm
@@ -446,7 +446,22 @@ (define-public python-certauth
          "1yxqfb5131wahjyw9pxz03bq476rcfx62s6k53xx4cqbzzgdaqkq"))))
     (build-system pyproject-build-system)
     (arguments
-     (list #:phases
+     (list #:test-flags
+           #~(list
+              "-k"
+              (string-append
+                ; Those tests uses PKCS12, which has been removed in
+                ; pyopenssl 23.3.0:
+                "not test_custom_not_before_not_after"
+                " and not test_ca_cert_in_mem"
+                ; Those tests try to download certificates:
+                " and not test_file_wildcard"
+                " and not test_file_wildcard_subdomains"
+                " and not test_in_mem_parent_wildcard_cert"
+                " and not test_in_mem_parent_wildcard_cert_at_tld"
+                " and not test_in_mem_parent_wildcard_cert_2"
+                ))
+           #:phases
            #~(modify-phases %standard-phases
                (add-after 'unpack 'adjust-test
                  (lambda _
@@ -458,7 +473,7 @@ (define-public python-certauth
     (propagated-inputs
      (list python-pyopenssl python-tldextract))
     (native-inputs
-     (list python-pytest-cov))
+     (list python-pytest-cov python-setuptools python-wheel))
     (home-page "https://github.com/ikreymer/certauth")
     (synopsis "Certificate authority creation tool")
     (description "This package provides a small library, built on top of
-- 
2.45.2