mirror of
https://codeberg.org/guix/guix.git
synced 2025-10-02 02:15:12 +00:00
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:
parent
c84b4d38b3
commit
0b7179b8b9
1 changed files with 24 additions and 10 deletions
|
@ -446,19 +446,33 @@ blake3, a cryptographic hash function.")
|
||||||
"1yxqfb5131wahjyw9pxz03bq476rcfx62s6k53xx4cqbzzgdaqkq"))))
|
"1yxqfb5131wahjyw9pxz03bq476rcfx62s6k53xx4cqbzzgdaqkq"))))
|
||||||
(build-system pyproject-build-system)
|
(build-system pyproject-build-system)
|
||||||
(arguments
|
(arguments
|
||||||
(list #:phases
|
(list
|
||||||
#~(modify-phases %standard-phases
|
#:test-flags
|
||||||
(add-after 'unpack 'adjust-test
|
#~(list "-k" (string-join
|
||||||
(lambda _
|
(list
|
||||||
;; Newer PyOpenSSL no longer separates extensions with
|
;; Those tests uses PKCS12, which has been removed in
|
||||||
;; newline (this can be removed for >1.3.0).
|
;; pyopenssl 23.3.0:
|
||||||
(substitute* "test/test_certauth.py"
|
"not test_custom_not_before_not_after"
|
||||||
(("7334\\\\n, DNS")
|
"test_ca_cert_in_mem"
|
||||||
"7334, DNS")))))))
|
;; 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
|
(propagated-inputs
|
||||||
(list python-pyopenssl python-tldextract))
|
(list python-pyopenssl python-tldextract))
|
||||||
(native-inputs
|
(native-inputs
|
||||||
(list python-pytest-cov))
|
(list python-pytest-cov python-setuptools python-wheel))
|
||||||
(home-page "https://github.com/ikreymer/certauth")
|
(home-page "https://github.com/ikreymer/certauth")
|
||||||
(synopsis "Certificate authority creation tool")
|
(synopsis "Certificate authority creation tool")
|
||||||
(description "This package provides a small library, built on top of
|
(description "This package provides a small library, built on top of
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue