diff options
author | Ivan Babrou <github@ivan.computer> | 2021-02-07 13:35:53 -0800 |
---|---|---|
committer | Andrew Childs <lorne@cons.org.nz> | 2021-05-17 00:27:03 +0900 |
commit | 6815776cb0b623c3ded838abc00b923838bba55c (patch) | |
tree | 668ce36e78a8ce39ce3ce588d64b576966470dfa | |
parent | da3ae0231aa2433f6f3711e57020456dc27e26e5 (diff) | |
download | nixpkgs-6815776cb0b623c3ded838abc00b923838bba55c.tar nixpkgs-6815776cb0b623c3ded838abc00b923838bba55c.tar.gz nixpkgs-6815776cb0b623c3ded838abc00b923838bba55c.tar.bz2 nixpkgs-6815776cb0b623c3ded838abc00b923838bba55c.tar.lz nixpkgs-6815776cb0b623c3ded838abc00b923838bba55c.tar.xz nixpkgs-6815776cb0b623c3ded838abc00b923838bba55c.tar.zst nixpkgs-6815776cb0b623c3ded838abc00b923838bba55c.zip |
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.
-rw-r--r-- | pkgs/development/python-modules/cryptography/default.nix | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/pkgs/development/python-modules/cryptography/default.nix b/pkgs/development/python-modules/cryptography/default.nix index 1bf3602a7b1..fd6cbfc512e 100644 --- a/pkgs/development/python-modules/cryptography/default.nix +++ b/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 |