Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
PrivateStorageio
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
PrivateStorage
PrivateStorageio
Commits
b59188c5
Commit
b59188c5
authored
4 years ago
by
Jean-Paul Calderone
Browse files
Options
Downloads
Patches
Plain Diff
promote the pyopenssl overlay to the very top
parent
d4ea88c7
No related branches found
Branches containing commit
No related tags found
1 merge request
!69
WIP: Upgrade to OpenSSL 1.1.1k
Pipeline
#340
failed
4 years ago
Stage: build
Stage: test
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
nixos/modules/overlays.nix
+0
-2
0 additions, 2 deletions
nixos/modules/overlays.nix
nixos/openssl-111k.nix
+6
-0
6 additions, 0 deletions
nixos/openssl-111k.nix
nixos/pkgs/pyopenssl.nix
+87
-6
87 additions, 6 deletions
nixos/pkgs/pyopenssl.nix
with
93 additions
and
8 deletions
nixos/modules/overlays.nix
+
0
−
2
View file @
b59188c5
...
...
@@ -21,8 +21,6 @@ let
# And explicitly configure it with our preferred version of Tahoe-LAFS.
inherit
tahoe-lafs
;
};
pyopenssl
=
python-self
.
callPackage
../pkgs/pyopenssl.nix
{
};
};
in
self
:
super
:
{
...
...
This diff is collapsed.
Click to expand it.
nixos/openssl-111k.nix
+
6
−
0
View file @
b59188c5
...
...
@@ -9,4 +9,10 @@ self: super: rec {
};
});
openssl
=
openssl_1_1
;
python27
=
super
.
python27
.
override
(
old
:
{
packageOverrides
=
python-self
:
python-super
:
{
pyopenssl
=
python-super
.
callPackage
./pkgs/pyopenssl.nix
{
};
};
});
}
This diff is collapsed.
Click to expand it.
nixos/pkgs/pyopenssl.nix
+
87
−
6
View file @
b59188c5
{
fetchPypi
,
pyopenssl
}:
pyopenssl
.
overrideAttrs
(
old
:
{
{
stdenv
,
buildPythonPackage
,
fetchPypi
,
openssl
,
cryptography
,
pyasn1
,
idna
,
pytest
,
pretend
,
flaky
,
glibcLocales
}:
with
stdenv
.
lib
;
let
# https://github.com/pyca/pyopenssl/issues/791
# These tests, we disable in the case that libressl is passed in as openssl.
failingLibresslTests
=
[
"test_op_no_compression"
"test_npn_advertise_error"
"test_npn_select_error"
"test_npn_client_fail"
"test_npn_success"
"test_use_certificate_chain_file_unicode"
"test_use_certificate_chain_file_bytes"
"test_add_extra_chain_cert"
"test_set_session_id_fail"
"test_verify_with_revoked"
"test_set_notAfter"
"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"
# https://github.com/pyca/pyopenssl/issues/768
"test_wantWriteError"
]
++
(
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
!=
[])
"-k 'not
${
concatStringsSep
" and not "
disabledTests
}
'"
;
in
buildPythonPackage
rec
{
pname
=
"pyOpenSSL"
;
version
=
"20.0.1"
;
inherit
(
old
)
name
;
src
=
fetchPypi
{
inherit
name
;
sha256
=
"
a
eca66338f6de19d1aa46ed634c3b9ae519a64b458f8468aec688e7e3c20f20
1
"
;
inherit
p
name
version
;
sha256
=
"
b
eca66338f6de19d1aa46ed634c3b9ae519a64b458f8468aec688e7e3c20f20
0
"
;
};
})
outputs
=
[
"out"
"dev"
];
checkPhase
=
''
runHook preCheck
export LANG="en_US.UTF-8"
py.test tests
${
testExpression
}
runHook postCheck
''
;
# Seems to fail unpredictably on Darwin. See http://hydra.nixos.org/build/49877419/nixlog/1
# for one example, but I've also seen ContextTests.test_set_verify_callback_exception fail.
doCheck
=
!
stdenv
.
isDarwin
;
nativeBuildInputs
=
[
openssl
];
propagatedBuildInputs
=
[
cryptography
pyasn1
idna
];
checkInputs
=
[
pytest
pretend
flaky
glibcLocales
];
}
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment