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.
launchpad/nixpkgs/master
Ivan Babrou 3 years ago committed by Andrew Childs
parent da3ae0231a
commit 6815776cb0
  1. 12
      pkgs/development/python-modules/cryptography/default.nix

@ -66,8 +66,18 @@ buildPythonPackage rec {
pytz
];
pytestFlags = lib.concatStringsSep " " ([
"--disable-pytest-warnings"
] ++
lib.optionals (stdenv.isDarwin && stdenv.isAarch64) [
# aarch64-darwin forbids W+X memory, but this tests depends on it:
# * https://cffi.readthedocs.io/en/latest/using.html#callbacks
"--ignore=tests/hazmat/backends/test_openssl_memleak.py"
]
);
checkPhase = ''
py.test --disable-pytest-warnings tests
py.test ${pytestFlags} tests
'';
# IOKit's dependencies are inconsistent between OSX versions, so this is the best we

Loading…
Cancel
Save