pythonPackages.pyopenssl: add support for building with openssl 1.1.x
This commit is contained in:
parent
0ffe8e6bb1
commit
3e9184b8dc
1 changed files with 14 additions and 1 deletions
|
@ -32,12 +32,25 @@ let
|
|||
"test_set_notBefore"
|
||||
];
|
||||
|
||||
# these tests are extremely tightly wed to the exact output of the openssl cli tool,
|
||||
# including exact punctuation.
|
||||
failingOpenSSL_1_1Tests = [
|
||||
"test_dump_certificate"
|
||||
"test_dump_privatekey_text"
|
||||
"test_dump_certificate_request"
|
||||
"test_export_text"
|
||||
];
|
||||
|
||||
disabledTests = [
|
||||
# https://github.com/pyca/pyopenssl/issues/692
|
||||
# These tests, we disable always.
|
||||
"test_set_default_verify_paths"
|
||||
"test_fallback_default_verify_paths"
|
||||
] ++ (optionals (hasPrefix "libressl" openssl.meta.name) failingLibresslTests);
|
||||
] ++ (
|
||||
optionals (hasPrefix "libressl" openssl.meta.name) failingLibresslTests
|
||||
) ++ (
|
||||
optionals (versionAtLeast (getVersion openssl.name) "1.1") failingOpenSSL_1_1Tests
|
||||
);
|
||||
|
||||
# Compose the final string expression, including the "-k" and the single quotes.
|
||||
testExpression = optionalString (disabledTests != [])
|
||||
|
|
Loading…
Reference in a new issue