python3Packages.cryptography: ignore test_openssl_memleak.py on aarch64-darwin

The test fails due to dependency on W+X memory, which is forbidden as of 11.2.

authored by Ivan Babrou and committed by Andrew Childs 6815776c da3ae023

+11 -1
+11 -1
pkgs/development/python-modules/cryptography/default.nix
··· 66 66 pytz 67 67 ]; 68 68 69 + pytestFlags = lib.concatStringsSep " " ([ 70 + "--disable-pytest-warnings" 71 + ] ++ 72 + lib.optionals (stdenv.isDarwin && stdenv.isAarch64) [ 73 + # aarch64-darwin forbids W+X memory, but this tests depends on it: 74 + # * https://cffi.readthedocs.io/en/latest/using.html#callbacks 75 + "--ignore=tests/hazmat/backends/test_openssl_memleak.py" 76 + ] 77 + ); 78 + 69 79 checkPhase = '' 70 - py.test --disable-pytest-warnings tests 80 + py.test ${pytestFlags} tests 71 81 ''; 72 82 73 83 # IOKit's dependencies are inconsistent between OSX versions, so this is the best we