Merge pull request #115226 from bobrik/ivan/trustme-wx

python3Packages.trustme: skip disallowed w+x test on aarch64-darwin
This commit is contained in:
Sandro 2021-04-12 02:29:50 +02:00 committed by GitHub
commit ce81b013a2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 8 additions and 5 deletions

View File

@ -1,12 +1,13 @@
{ lib
, stdenv
, buildPythonPackage
, fetchPypi
, isPy3k
, cryptography
, futures ? null
, pytest
, pyopenssl
, service-identity
, pytestCheckHook
, idna
}:
@ -20,9 +21,9 @@ buildPythonPackage rec {
};
checkInputs = [
pytest
pyopenssl
service-identity
pytestCheckHook
];
propagatedBuildInputs = [
@ -32,9 +33,11 @@ buildPythonPackage rec {
futures
];
checkPhase = ''
pytest
'';
# aarch64-darwin forbids W+X memory, but this tests depends on it:
# * https://github.com/pyca/pyopenssl/issues/873
disabledTests = lib.optionals (stdenv.isDarwin && stdenv.isAarch64) [
"test_pyopenssl_end_to_end"
];
# Some of the tests use localhost networking.
__darwinAllowLocalNetworking = true;