~ruther/guix-local

0b7179b8b9b5c0e569becd88cef122356ad5cd76 — Felix Gruber 1 year, 2 months ago c84b4d3
gnu: python-certauth: Fix build.

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

Change-Id: I623638539fa25d4178fd4b0b4c201e5f91172542
Co-authored-by: Sharlatan Hellseher <sharlatanus@gmail.com>
Signed-off-by: Sharlatan Hellseher <sharlatanus@gmail.com>
1 files changed, 24 insertions(+), 10 deletions(-)

M gnu/packages/python-crypto.scm
M gnu/packages/python-crypto.scm => gnu/packages/python-crypto.scm +24 -10
@@ 446,19 446,33 @@ blake3, a cryptographic hash function.")
         "1yxqfb5131wahjyw9pxz03bq476rcfx62s6k53xx4cqbzzgdaqkq"))))
    (build-system pyproject-build-system)
    (arguments
     (list #:phases
           #~(modify-phases %standard-phases
               (add-after 'unpack 'adjust-test
                 (lambda _
                   ;; Newer PyOpenSSL no longer separates extensions with
                   ;; newline (this can be removed for >1.3.0).
                   (substitute* "test/test_certauth.py"
                     (("7334\\\\n, DNS")
                      "7334, DNS")))))))
     (list
      #:test-flags
      #~(list "-k" (string-join
                    (list
                     ;; Those tests uses PKCS12, which has been removed in
                     ;; pyopenssl 23.3.0:
                     "not test_custom_not_before_not_after"
                     "test_ca_cert_in_mem"
                     ;; Those tests try to download certificates:
                     "test_file_wildcard"
                     "test_file_wildcard_subdomains"
                     "test_in_mem_parent_wildcard_cert"
                     "test_in_mem_parent_wildcard_cert_at_tld"
                     "test_in_mem_parent_wildcard_cert_2")
                    " and not "))
      #:phases
      #~(modify-phases %standard-phases
          (add-after 'unpack 'adjust-test
            (lambda _
              ;; Newer PyOpenSSL no longer separates extensions with
              ;; newline (this can be removed for >1.3.0).
              (substitute* "test/test_certauth.py"
                (("7334\\\\n, DNS") "7334, DNS")))))))
    (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