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>
This commit is contained in:
Felix Gruber 2025-01-25 18:42:59 +00:00 committed by Sharlatan Hellseher
parent c84b4d38b3
commit 0b7179b8b9
No known key found for this signature in database
GPG key ID: 76D727BFF62CD2B5

View file

@ -446,19 +446,33 @@ blake3, a cryptographic hash function.")
"1yxqfb5131wahjyw9pxz03bq476rcfx62s6k53xx4cqbzzgdaqkq"))))
(build-system pyproject-build-system)
(arguments
(list #:phases
(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")))))))
(("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