diff options
author | Ivan Babrou <github@ivan.computer> | 2021-03-05 21:36:52 -0800 |
---|---|---|
committer | Ivan Babrou <github@ivan.computer> | 2021-04-10 17:19:36 -0700 |
commit | af8164fba2573a801cba602ddc9fe30a05fa13a9 (patch) | |
tree | 6aedd3cae70ef6508461fa44af919a5a7811161e /pkgs/development/python-modules/trustme | |
parent | 79aa8089cc75ac2ddadc23d0e2a638e4e04c6859 (diff) |
python3Packages.trustme: skip disallowed w+x test on aarch64-darwin
Diffstat (limited to 'pkgs/development/python-modules/trustme')
-rw-r--r-- | pkgs/development/python-modules/trustme/default.nix | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/pkgs/development/python-modules/trustme/default.nix b/pkgs/development/python-modules/trustme/default.nix index f835509fe9b60..a959bef16826f 100644 --- a/pkgs/development/python-modules/trustme/default.nix +++ b/pkgs/development/python-modules/trustme/default.nix @@ -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; |