From af8164fba2573a801cba602ddc9fe30a05fa13a9 Mon Sep 17 00:00:00 2001 From: Ivan Babrou Date: Fri, 5 Mar 2021 21:36:52 -0800 Subject: [PATCH] python3Packages.trustme: skip disallowed w+x test on aarch64-darwin --- pkgs/development/python-modules/trustme/default.nix | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/pkgs/development/python-modules/trustme/default.nix b/pkgs/development/python-modules/trustme/default.nix index f835509fe9b6..a959bef16826 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;