From 18fcfb980a99c51e2749e73844e70622919b2d49 Mon Sep 17 00:00:00 2001 From: Ivan Babrou Date: Sat, 25 Dec 2021 17:07:02 -0800 Subject: [PATCH] cffi: disable tests on aarch64-darwin The tests were disabled on Darwin prior to 54b5495e4e63, which probably fixed them for x86_64-darwin, but not for aarch64-darwin. --- pkgs/development/python-modules/cffi/default.nix | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pkgs/development/python-modules/cffi/default.nix b/pkgs/development/python-modules/cffi/default.nix index 07af19a43846..a65cd297f43f 100644 --- a/pkgs/development/python-modules/cffi/default.nix +++ b/pkgs/development/python-modules/cffi/default.nix @@ -30,7 +30,9 @@ if isPyPy then null else buildPythonPackage rec { NIX_CFLAGS_COMPILE = lib.optionalString stdenv.cc.isClang "-Wno-unused-command-line-argument -Wno-unreachable-code -Wno-c++11-narrowing"; - doCheck = !stdenv.hostPlatform.isMusl; + # Lots of tests fail on aarch64-darwin due to "Cannot allocate write+execute memory": + # * https://cffi.readthedocs.io/en/latest/using.html#callbacks + doCheck = !stdenv.hostPlatform.isMusl && !(stdenv.isDarwin && stdenv.isAarch64); checkInputs = [ pytestCheckHook ];