diff options
author | Felix Gruber <felgru@posteo.net> | 2025-01-25 18:42:59 +0000 |
---|---|---|
committer | Sharlatan Hellseher <sharlatanus@gmail.com> | 2025-01-25 22:18:08 +0000 |
commit | 0b7179b8b9b5c0e569becd88cef122356ad5cd76 (patch) | |
tree | 05d3f0f23bc666603d5b93902761e6dea83dcdb5 /gnu/packages/python-crypto.scm | |
parent | c84b4d38b39b8c514d7f2493f79cd115c91bb2ac (diff) |
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>
Diffstat (limited to 'gnu/packages/python-crypto.scm')
-rw-r--r-- | gnu/packages/python-crypto.scm | 34 |
1 files changed, 24 insertions, 10 deletions
diff --git a/gnu/packages/python-crypto.scm b/gnu/packages/python-crypto.scm index 6aa8e83d4d..bf2262950a 100644 --- a/gnu/packages/python-crypto.scm +++ b/gnu/packages/python-crypto.scm @@ -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 |